Skip to content

Commit 3a22f8e

Browse files
Merge pull request #46 from offendingcommit/build/dockerfile-source-label
build(docker): bake image source label for GHCR repo linking
2 parents 7354879 + e5e930d commit 3a22f8e

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ RUN pnpm --filter @openconcho/web build
3030
# under a read-only filesystem with cap_drop ALL.
3131
FROM nginxinc/nginx-unprivileged:alpine
3232

33+
# Baked into the image config — the canonical, build-tool-independent signal GHCR
34+
# reads to connect the published package to this repo. Evaluated at package
35+
# creation, so it links freshly-created packages without relying on buildx
36+
# annotation levels.
37+
LABEL org.opencontainers.image.source="https://github.com/offendingcommit/openconcho"
38+
3339
COPY --chown=101:101 --from=builder /app/packages/web/dist /usr/share/nginx/html
3440
# Rendered to /etc/nginx/conf.d/default.conf by the image's envsubst entrypoint.
3541
COPY --chown=101:101 docker/nginx.conf.template /etc/nginx/templates/default.conf.template

0 commit comments

Comments
 (0)