Skip to content

Commit b16909b

Browse files
committed
chore: add OCI labels to container images
Add org.opencontainers.image.source label to link packages to the repository for visibility inheritance on GHCR.
1 parent 8e5c98e commit b16909b

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ RUN cargo build --release --package barbacane
2323
# Runtime stage - distroless for minimal attack surface
2424
FROM gcr.io/distroless/cc-debian12:nonroot
2525

26+
# OCI labels for GitHub Container Registry
27+
LABEL org.opencontainers.image.source="https://github.com/barbacane-dev/barbacane"
28+
LABEL org.opencontainers.image.description="Barbacane API Gateway - Data Plane"
29+
LABEL org.opencontainers.image.licenses="Apache-2.0"
30+
2631
# Copy the binary from builder
2732
COPY --from=builder /build/target/release/barbacane /barbacane
2833

Dockerfile.control

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ RUN cargo build --release --package barbacane-control
3131
# Runtime stage - Debian slim (needs libc for control plane dependencies)
3232
FROM debian:bookworm-slim
3333

34+
# OCI labels for GitHub Container Registry
35+
LABEL org.opencontainers.image.source="https://github.com/barbacane-dev/barbacane"
36+
LABEL org.opencontainers.image.description="Barbacane API Gateway - Control Plane"
37+
LABEL org.opencontainers.image.licenses="Apache-2.0"
38+
3439
# Install runtime dependencies and nginx for serving UI
3540
RUN apt-get update && apt-get install -y --no-install-recommends \
3641
ca-certificates \

0 commit comments

Comments
 (0)