Skip to content

Commit

Permalink
feat: compact resulting Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterMosmans committed Dec 8, 2021
1 parent 4a272c5 commit 1cc582e
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ RUN ln -s /usr/lib/nikto/nikto.pl /usr/local/bin/nikto.pl && \

# Install necessary binaries
# hadolint ignore=DL3008
RUN apt-get update && apt-get install -y --no-install-recommends\
RUN apt-get update && apt-get install -y --no-install-recommends \
bsdmainutils \
curl \
dnsutils \
Expand All @@ -78,10 +78,11 @@ RUN apt-get update && apt-get install -y --no-install-recommends\
&& rm -rf /var/lib/apt/lists/*

# Update node package manager and typescript package
RUN npm install --global npm@latest typescript@latest @cyclonedx/bom@latest

# Update packages
RUN npm update --global
RUN npm install --global npm@latest typescript@latest @cyclonedx/bom@latest && \
npm update --global && \
npm cache clean --force


ENV PATH="/opt/venv/bin:$PATH"
ENV SONAR_RUNNER_HOME=/usr/lib/sonar-scanner SONAR_USER_HOME=/tmp
Expand All @@ -92,4 +93,4 @@ ENV NODE_PATH=/usr/local/lib/node_modules
RUN groupadd -r tool && \
useradd --create-home --no-log-init --shell /bin/bash --system --gid tool --groups tool,node tool && \
chown -R tool:tool /opt/venv
USER tool
USER tool

0 comments on commit 1cc582e

Please sign in to comment.