Skip to content

Commit

Permalink
apt update on final stage
Browse files Browse the repository at this point in the history
Co-Authored-By: Kevin Day <35114839+kaladay@users.noreply.github.com>
  • Loading branch information
wwelling and kaladay committed Aug 25, 2022
1 parent 8275c88 commit 3328374
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3328374

Please sign in to comment.