Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasleplus authored Jul 25, 2024
1 parent f83123b commit ec328eb
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions maven-check-versions/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,16 @@ ENV MAVEN_OPTS="${MAVEN_OPTS}"
ARG MAVEN_CLI_OPTS="--batch-mode --errors --fail-at-end --show-version -DinstallAtEnd=true -DdeployAtEnd=true"
ENV MAVEN_CLI_OPTS="${MAVEN_CLI_OPTS}"

# hadolint ignore=DL3008
RUN apt-get update && \
apt-get install --no-install-recommends -y adduser && \
# Removing documentation packages *after* installing them is kind of hacky,
# but it only adds some overhead while building the image.
apt-get --purge remove -y .\*-doc$ && \
# Remove more unnecessary stuff
apt-get clean -y && \
rm -rf /var/lib/apt/lists/*

RUN adduser \
--home "${USER_HOME}" \
--uid "${USER_ID}" \
Expand Down

0 comments on commit ec328eb

Please sign in to comment.