####################### ## Final Production Image ####################### FROM alpine:3 as artifact ARG BUILDARCH RUN adduser -D zitadel COPY cmd/zitadel/*.yaml /app/ COPY .download/zitadel/zitadel-linux-${BUILDARCH} /app/zitadel COPY .download/zitadel/console /app/console/ RUN chmod a+x /app/zitadel ####################### ## Scratch Image ####################### FROM scratch as final COPY --from=artifact /etc/passwd /etc/passwd COPY --from=artifact /etc/ssl/certs /etc/ssl/certs COPY --from=artifact /app / USER zitadel HEALTHCHECK NONE ENTRYPOINT ["/zitadel"]