From 33283746fdfac0565a92ce1f7f1e7d77e2c190fb Mon Sep 17 00:00:00 2001 From: William Welling Date: Thu, 25 Aug 2022 15:41:24 -0500 Subject: [PATCH] apt update on final stage Co-Authored-By: Kevin Day <35114839+kaladay@users.noreply.github.com> --- Dockerfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Dockerfile b/Dockerfile index 3f3d52f..250d48e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -45,6 +45,12 @@ ARG USER_ID ARG USER_NAME ARG SOURCE_DIR +# Update the system and install dependencies. +RUN apt-get update && \ + apt-get upgrade -y && \ + apt-get clean && \ + rm -rf /var/lib/apt/lists/* + # Create the user and group (use a high ID to attempt to avoid conflicts). RUN groupadd --non-unique -g $USER_ID $USER_NAME && \ useradd --non-unique -d /$USER_NAME -m -u $USER_ID -g $USER_ID $USER_NAME