From ebf704fc68b104908e098571d976a9adae1fedac Mon Sep 17 00:00:00 2001 From: snyk-bot Date: Sun, 28 Jan 2024 00:09:21 +0000 Subject: [PATCH] fix: release/stable/alpine311/docker/Dockerfile to reduce vulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-ALPINE311-ZLIB-2977081 --- release/stable/alpine311/docker/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/release/stable/alpine311/docker/Dockerfile b/release/stable/alpine311/docker/Dockerfile index 82cccd512..a1e9637ff 100644 --- a/release/stable/alpine311/docker/Dockerfile +++ b/release/stable/alpine311/docker/Dockerfile @@ -3,7 +3,7 @@ # Docker image file that describes an Alpine3.11 image with PowerShell installed from .tar.gz file(s) -FROM alpine:3.11 AS installer-env +FROM alpine:3.18.6 AS installer-env # Define Args for the needed to add the package ARG PS_VERSION=7.0.0 @@ -24,7 +24,7 @@ RUN mkdir -p ${PS_INSTALL_FOLDER} RUN tar zxf /tmp/linux.tar.gz -C ${PS_INSTALL_FOLDER} -v # Start a new stage so we lose all the tar.gz layers from the final image -FROM alpine:3.11 +FROM alpine:3.18.6 # Copy only the files we need from the previous stage COPY --from=installer-env ["/opt/microsoft/powershell", "/opt/microsoft/powershell"]