What was reported:
Issue zitadel/zitadel#6277 (closed, 23 comments): I have tried to build zitadel through build/dockerfile but got some error like Zitadel folder not available

Current Dockerfile

```
FROM --platform=$TARGETPLATFORM debian:latest as artifact
ENV ZITADEL_ARGS=
ARG TARGETPLATFORM

RUN apt-get update && apt-get install ca-certificates -y

COPY build/entrypoint.sh /app/entrypoint.sh
COPY zitadel /app/zitadel

RUN useradd -s "" --home / zitadel && \
    chown zitadel /app/zitadel && \
    chmod +x /app/zitadel && \
    chown zitadel /app/entrypoint.sh && \
    chmod +x /app/entrypoint.sh

WORKDIR /app
ENV...

What works:
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.