From b8e0ab7c58325d1f8dee56d8a5174fb293787bb7 Mon Sep 17 00:00:00 2001 From: Andy Tinkham Date: Mon, 2 May 2022 13:13:57 -0500 Subject: [PATCH] Add apt-get update & install gzip in final image Signed-off-by: Andy Tinkham --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index b48a689..bf6d141 100644 --- a/Dockerfile +++ b/Dockerfile @@ -38,6 +38,9 @@ RUN mvn package && cp target/petstore-*.jar app.jar FROM openjdk:11-jdk-slim LABEL org.opencontainers.image.authors="CyberArk" +# Install the fix for CVE-2022-1271 +RUN apt-get update && apt-get dist-upgrade -y + COPY --from=summon /usr/local/lib/summon /usr/local/lib/summon COPY --from=summon /usr/local/bin/summon /usr/local/bin/summon COPY --from=maven /app/app.jar /app.jar