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