mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-12 11:04:25 +00:00
a36818c222
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>
22 lines
558 B
Docker
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"]
|
|
|