Skip to content

Commit deb9efe

Browse files
authored
Merge pull request #564 from mihivagyok/use-distroless-nonroot
Use nonroot distroless image for agent and server
2 parents 125962d + dc7dc5c commit deb9efe

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

artifacts/images/agent-build.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ ARG ARCH
2525
RUN CGO_ENABLED=0 GOOS=linux GOARCH=${ARCH} go build -mod=vendor -v -a -ldflags '-extldflags "-static"' -o proxy-agent sigs.k8s.io/apiserver-network-proxy/cmd/agent
2626

2727
# Copy the loader into a thin image
28-
FROM gcr.io/distroless/static-debian11
28+
FROM gcr.io/distroless/static-debian11:nonroot
2929
WORKDIR /
3030
COPY --from=builder /go/src/sigs.k8s.io/apiserver-network-proxy/proxy-agent .
3131
ENTRYPOINT ["/proxy-agent"]

artifacts/images/server-build.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ ARG ARCH
2424
RUN CGO_ENABLED=0 GOOS=linux GOARCH=${ARCH} go build -mod=vendor -v -a -ldflags '-extldflags "-static"' -o proxy-server sigs.k8s.io/apiserver-network-proxy/cmd/server
2525

2626
# Copy the loader into a thin image
27-
FROM gcr.io/distroless/static-debian11
27+
FROM gcr.io/distroless/static-debian11:nonroot
2828
WORKDIR /
2929
COPY --from=builder /go/src/sigs.k8s.io/apiserver-network-proxy/proxy-server .
3030
ENTRYPOINT ["/proxy-server"]

0 commit comments

Comments
 (0)