Skip to content

Commit

Permalink
Add common label to Dockerfiles (kubernetes#10803)
Browse files Browse the repository at this point in the history
  • Loading branch information
rikatz authored Dec 26, 2023
1 parent 4b832de commit 1a7112e
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions images/kube-webhook-certgen/rootfs/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ RUN CGO_ENABLED=0 GOOS=linux GOARCH=${TARGETARCH} go build -a -o kube-webhook-ce
FROM --platform=$BUILDPLATFORM gcr.io/distroless/static:nonroot
ARG BUILDPLATFORM
ARG TARGETARCH

LABEL org.opencontainers.image.source=https://github.com/kubernetes/ingress-nginx

WORKDIR /
COPY --from=builder /workspace/kube-webhook-certgen /kube-webhook-certgen
USER 65532:65532
Expand Down
2 changes: 2 additions & 0 deletions images/nginx/rootfs/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ COPY --from=builder /usr/local /usr/local
COPY --from=builder /opt /opt
COPY --from=builder /etc/nginx /etc/nginx

LABEL org.opencontainers.image.source=https://github.com/kubernetes/ingress-nginx

RUN apk update \
&& apk upgrade \
&& apk add -U --no-cache \
Expand Down
2 changes: 2 additions & 0 deletions images/test-runner/rootfs/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -125,4 +125,6 @@ RUN pip install "yamllint==$YAML_LINT_VERSION"
# Install Yamale YAML schema validator
RUN pip install "yamale==$YAMALE_VERSION"

LABEL org.opencontainers.image.source=https://github.com/kubernetes/ingress-nginx

WORKDIR $GOPATH

0 comments on commit 1a7112e

Please sign in to comment.