From e03ed49f795ee8982453a6e342d8018a577afced Mon Sep 17 00:00:00 2001 From: sethsimmons Date: Fri, 19 Nov 2021 16:12:19 -0500 Subject: [PATCH] Add apt upgrade step to resolve vulns --- Dockerfile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 66572d4..ab2ff16 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,7 +8,9 @@ ARG MONERO_BRANCH=release-v0.17 ENV DEBIAN_FRONTEND="noninteractive" # Install dependencies for monerod and xmrblocks compilation -RUN apt-get update && apt install -y --no-install-recommends \ +RUN apt-get update \ + && apt-get upgrade -y \ + && apt-get install -y --no-install-recommends \ git \ build-essential \ cmake \ @@ -65,8 +67,9 @@ FROM ubuntu:20.04 ENV DEBIAN_FRONTEND="noninteractive" # Install unzip to handle bundled libs from builder stage -RUN apt-get update && apt-get install -y --no-install-recommends \ - unzip \ +RUN apt-get update \ + && apt-get upgrade -y \ + && apt-get install -y --no-install-recommends unzip \ && apt-get clean \ && rm -rf /var/lib/apt/lists/*