Skip to content

Commit

Permalink
Add apt-get update & install gzip in final image
Browse files Browse the repository at this point in the history
Signed-off-by: Andy Tinkham <[email protected]>
  • Loading branch information
andytinkham committed May 2, 2022
1 parent 17825fb commit b8e0ab7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b8e0ab7

Please sign in to comment.