zitadel/build/Dockerfile
Fabian Meyer a36818c222
feat: Apply OCI source label to Docker image (#6070)
chore: Apply OCI source label to Docker image

This patch adds the `org.opencontainers.image.source` label to
the Zitadel Docker image. This label is used by dependency update
tools like Dependabot and Renovate to look up release notes for
Docker image updates.

Co-authored-by: Elio Bischof <elio@zitadel.com>
2023-07-06 11:32:41 +00:00

22 lines
558 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
LABEL org.opencontainers.image.source="https://github.com/zitadel/zitadel"
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"]