Skip to content

Commit

Permalink
Add upgrade command in Dockerfile_iptables
Browse files Browse the repository at this point in the history
Fix trivy warning on vulnerable libcrypto package
-> No newer alpine image on dockerhub

Signed-off-by: Nicolas JENDROWIAK <75165555+shkuviak@users.noreply.github.com>
  • Loading branch information
shkuviak committed Nov 25, 2023
1 parent 08abd38 commit e7b68cf
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Dockerfile_iptables
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@ RUN --mount=type=cache,sharing=locked,id=gomod,target=/go/pkg/mod/cache \
CGO_ENABLED=0 GOOS=linux make build

FROM alpine:3.18.4
# Add Certificates into the image, for anything that does API calls
RUN apk add --no-cache iptables
# Update pkgs and add iptables
RUN apk upgrade && \
apk add --no-cache iptables

# Add kube-vip binary
COPY --from=dev /src/kube-vip /
ENTRYPOINT ["/kube-vip"]

0 comments on commit e7b68cf

Please sign in to comment.