From 20616c446fc2d537e49d51adb660e02e62510411 Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Sun, 28 Jul 2024 20:30:07 +0000 Subject: [PATCH] fix: Dockerfile to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6032386 - https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6032386 - https://snyk.io/vuln/SNYK-ALPINE318-BUSYBOX-7249265 - https://snyk.io/vuln/SNYK-ALPINE318-BUSYBOX-7249419 - https://snyk.io/vuln/SNYK-ALPINE318-OPENSSL-6055795 --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 24eb450152..ca700e8804 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,13 +22,13 @@ COPY . . RUN make release-binary -FROM alpine:3.18.3 AS stager +FROM alpine:3.19 AS stager RUN mkdir -p /var/dex RUN mkdir -p /etc/dex COPY config.docker.yaml /etc/dex/ -FROM alpine:3.18.3 AS gomplate +FROM alpine:3.19 AS gomplate ARG TARGETOS ARG TARGETARCH @@ -41,7 +41,7 @@ RUN wget -O /usr/local/bin/gomplate \ && chmod +x /usr/local/bin/gomplate # For Dependabot to detect base image versions -FROM alpine:3.18.3 AS alpine +FROM alpine:3.19 AS alpine FROM gcr.io/distroless/static:latest AS distroless FROM $BASE_IMAGE