mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-17 21:37:35 +00:00
55af4a18a2
* feat: ensure google cloud run compatibility * from scratch docker image * fall back to cloud run container id for sonyflake
21 lines
483 B
Docker
21 lines
483 B
Docker
#######################
|
|
## Final Production Image
|
|
#######################
|
|
FROM alpine:3 as artifact
|
|
COPY zitadel /app/zitadel
|
|
RUN adduser -D zitadel && \
|
|
chown zitadel /app/zitadel && \
|
|
chmod +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"]
|
|
|