From 08eaff862dfb7de4cbbb952eaf406c17b96feb9a Mon Sep 17 00:00:00 2001 From: Erik Michelson Date: Tue, 21 Feb 2023 12:54:07 +0100 Subject: [PATCH] enhancement(dockerfiles): add/update oci labels Signed-off-by: Erik Michelson --- backend/docker/Dockerfile | 4 ++-- frontend/docker/Dockerfile | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/backend/docker/Dockerfile b/backend/docker/Dockerfile index a1c6c86b0..139a12602 100644 --- a/backend/docker/Dockerfile +++ b/backend/docker/Dockerfile @@ -53,10 +53,10 @@ RUN --mount=type=cache,sharing=locked,uid=1000,gid=1000,target=/tmp/.yarn \ ## Stage 3: Final image, only production dependencies FROM base as prod -LABEL org.opencontainers.image.title='HedgeDoc production image' +LABEL org.opencontainers.image.title='HedgeDoc production backend image' LABEL org.opencontainers.image.url='https://hedgedoc.org' LABEL org.opencontainers.image.source='https://github.com/hedgedoc/hedgedoc' -LABEL org.opencontainers.image.documentation='https://github.com/hedgedoc/hedgedoc/blob/develop/docs/docker/README.md' +LABEL org.opencontainers.image.documentation='https://github.com/hedgedoc/hedgedoc/blob/develop/docs/content/dev/docker.md' LABEL org.opencontainers.image.licenses='AGPL-3.0' USER node diff --git a/frontend/docker/Dockerfile b/frontend/docker/Dockerfile index d67f14b6f..da13a0920 100644 --- a/frontend/docker/Dockerfile +++ b/frontend/docker/Dockerfile @@ -37,6 +37,12 @@ FROM base ENV NODE_ENV=production ENV NEXT_TELEMETRY_DISABLED=1 +LABEL org.opencontainers.image.title='HedgeDoc production frontend image' +LABEL org.opencontainers.image.url='https://hedgedoc.org' +LABEL org.opencontainers.image.source='https://github.com/hedgedoc/hedgedoc' +LABEL org.opencontainers.image.documentation='https://github.com/hedgedoc/hedgedoc/blob/develop/docs/content/dev/docker.md' +LABEL org.opencontainers.image.licenses='AGPL-3.0' + WORKDIR /usr/src/app COPY --from=builder --chown=node:node /usr/src/app/frontend/.next/standalone ./