Skip to content

Commit

Permalink
Fixed APK upgrade operation in dockerfile (#213)
Browse files Browse the repository at this point in the history
  • Loading branch information
merlimat authored Jun 24, 2024
1 parent 6bc4295 commit 1e24010
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,12 @@ RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on go build -a -o manager
# Use distroless as minimal base image to package the manager binary
# Refer to https://github.com/GoogleContainerTools/distroless for more details
FROM alpine:3.20
WORKDIR /
COPY --from=builder /workspace/manager .
USER 65532:65532

# Upgrade all packages to get latest versions with security fixes
RUN apk upgrade --no-cache

WORKDIR /
COPY --from=builder /workspace/manager .
USER 65532:65532

ENTRYPOINT ["/manager"]

0 comments on commit 1e24010

Please sign in to comment.