mirror of
https://github.com/zitadel/zitadel.git
synced 2025-02-28 21:47:23 +00:00

* chore: stop copying / and instead only copy zitadel * Update Dockerfile * Update release.yml * enable anchors debug * fix(container): don't copy alpine content into scratch execpt pwd * chore: remove need step * merge master
15 lines
421 B
Docker
15 lines
421 B
Docker
# This Stage prepares the user in the container and copies the files
|
|
FROM alpine:latest as prepare
|
|
RUN adduser -D zitadel
|
|
COPY .artifacts/zitadel-linux-amd64 /app/zitadel
|
|
COPY cmd/zitadel/*.yaml /app/
|
|
RUN chmod a+x /app/zitadel
|
|
|
|
# This Stage is intended as production image
|
|
FROM scratch as final
|
|
COPY --from=prepare /etc/passwd /etc/passwd
|
|
COPY --from=prepare /app /
|
|
USER zitadel
|
|
HEALTHCHECK NONE
|
|
ENTRYPOINT ["/zitadel"]
|