2020-05-14 07:38:58 +02:00
|
|
|
# This Stage prepares the user in the container and copies the files
|
2020-05-13 14:41:43 +02:00
|
|
|
FROM alpine:latest as prepare
|
|
|
|
RUN adduser -D zitadel
|
2020-05-14 07:38:58 +02:00
|
|
|
COPY .artifacts/zitadel-linux-amd64 /zitadel
|
2020-05-13 14:41:43 +02:00
|
|
|
COPY cmd/zitadel/*.yaml /
|
|
|
|
RUN chmod a+x /zitadel
|
|
|
|
|
2020-05-14 07:38:58 +02:00
|
|
|
# This Stage is intended as production image
|
2020-05-13 14:41:43 +02:00
|
|
|
FROM scratch as final
|
|
|
|
COPY --from=prepare /etc/passwd /etc/passwd
|
|
|
|
COPY --from=prepare / /
|
|
|
|
USER zitadel
|
|
|
|
HEALTHCHECK NONE
|
2020-05-27 13:50:08 +02:00
|
|
|
ENTRYPOINT ["/zitadel"]
|