From 2dc2c052efbd2f37a6843e2f732fd496b73f60b4 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Thu, 20 Jul 2023 16:08:26 +0000 Subject: [PATCH] fix: Dockerfile to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-ALPINE317-OPENSSL-5776809 - https://snyk.io/vuln/SNYK-ALPINE317-OPENSSL-5776809 --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 292f92e..0c0a0ae 100644 --- a/Dockerfile +++ b/Dockerfile @@ -23,14 +23,14 @@ RUN staticcheck './...' && \ RUN CGO_ENABLED=0 GOOS=linux go build -ldflags "-s -w" -a -installsuffix cgo -o ./rootfs/radix-vulnerability-scanner # Install SNYK -FROM alpine:3.17 as tools +FROM alpine:3 as tools COPY install_tools.sh /install/install_tools.sh RUN chmod +x /install/install_tools.sh RUN sh /install/install_tools.sh # Run scanner -FROM alpine:3.17 +FROM alpine:3 RUN apk update && \ apk add ca-certificates libstdc++