mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 14:47:33 +00:00
feat: ensure google cloud run compatibility (#3388)
* feat: ensure google cloud run compatibility * from scratch docker image * fall back to cloud run container id for sonyflake
This commit is contained in:
@@ -3,15 +3,18 @@
|
||||
#######################
|
||||
FROM alpine:3 as artifact
|
||||
COPY zitadel /app/zitadel
|
||||
RUN adduser -D zitadel
|
||||
RUN adduser -D zitadel && \
|
||||
chown zitadel /app/zitadel && \
|
||||
chmod +x /app/zitadel
|
||||
|
||||
#######################
|
||||
## Scratch Image
|
||||
#######################
|
||||
FROM scratch as final
|
||||
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"]
|
||||
|
||||
|
Reference in New Issue
Block a user