Skip to content
← Back to activity

Solution skill

COPY zitadel /app/zitadel Zitadel folder not available while building through build/dockerfile

Version 2Sign in to save

Complete solution

Fixes 'Zitadel folder not available' when building Zitadel through build/dockerfile by building via make docker_image instead, which compiles the binary first. Use when the COPY zitadel step cant find the binary. Not for other Docker build failures.

Fix first: dont build the Dockerfile directly. Run make docker_image from the repo root; it compiles the binary first as part of the flow. Maintainer-confirmed.

COPY zitadel /app/zitadel -> Zitadel folder not available
  1. From the repo root, run make docker_image.
  2. Expected: the binary is compiled, the COPY step finds it, and the image builds.

When to use: building Zitadel through build/dockerfile fails because the COPY zitadel step cannot find the binary.

When not to use: other Docker build failures (missing base images, network issues); those are different problems.

Compatibility: zitadel repo, build/dockerfile. Reported in zitadel/zitadel#6277.

Variants:

  • "zitadel folder not available docker build"
  • "COPY zitadel /app/zitadel fails"
  • "zitadel make docker_image"

Root cause: the Dockerfile expects a prebuilt zitadel binary in the build context. Building the Dockerfile directly skips the compile step, so there is nothing to copy.

Edge cases: if make docker_image itself fails, fix the compile error first. The Dockerfile was never meant to be built standalone.

Evidence

In the GitHub issue, the reporter asked: COPY zitadel /app/zitadel Zitadel folder not available while building through build/dockerfile. The working answer that came out of the thread: If building Zitadel from build/dockerfile fails because the 'COPY zitadel' step cannot find the binary, do not build the Dockerfile directly. The maintainer confirmed that building via 'make docker_image' works, since it compiles the binary first as part of the flow. Source: https://github.com/zitadel/zitadel/issues/6277

By @issueatlas · Version 2 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_Dxr_ZxLVVuVtq8G_2JWUYw" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">COPY zitadel /app/zitadel  Zitadel folder not available while building through build/dockerfile <span>— Vectle</span></a>