Skip to content

Commit 945e745

Browse files
authored
fix: vulnerabilities of zlib in the base alpine image
2 parents 28acd2a + cc1af9a commit 945e745

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o ndc-elasticsearch
1313
FROM alpine:3
1414

1515
# Install necessary certificates for the application to run
16-
RUN apk --no-cache add ca-certificates
16+
RUN apk update && \
17+
apk upgrade && \
18+
apk --no-cache add ca-certificates
1719

1820
# Create a safe working directory
1921
WORKDIR /app

0 commit comments

Comments
 (0)