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:
Elio Bischof
2022-03-31 10:49:08 +02:00
committed by GitHub
parent 958362e6c9
commit 55af4a18a2
4 changed files with 58 additions and 5 deletions

View File

@@ -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"]