Skip to content
This repository was archived by the owner on Oct 12, 2023. It is now read-only.

Commit f96feba

Browse files
aramasesozercan
andauthored
chore: run apt update && apt upgrade -y in dockerfile (#1317)
* chore: run apt update && apt upgrade -y in dockerfile Signed-off-by: Anish Ramasekar <[email protected]> * Update Dockerfile Co-authored-by: Sertaç Özercan <[email protected]> Signed-off-by: Anish Ramasekar <[email protected]> Co-authored-by: Sertaç Özercan <[email protected]>
1 parent 7b1eaab commit f96feba

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,9 @@ RUN export GOOS=$TARGETOS && \
1818
make build
1919

2020
FROM k8s.gcr.io/build-image/debian-iptables:bullseye-v1.5.1 AS nmi
21-
# upgrading zlib1g due to CVE-2022-37434
22-
RUN clean-install ca-certificates zlib1g
21+
RUN apt update && \
22+
apt upgrade -y && \
23+
clean-install ca-certificates
2324
COPY --from=builder /go/src/github.com/Azure/aad-pod-identity/bin/aad-pod-identity/nmi /bin/
2425
RUN useradd -u 10001 nonroot
2526
USER nonroot

0 commit comments

Comments
 (0)