Skip to content

Commit

Permalink
add: sonarcube suggestions on disable package install recommends
Browse files Browse the repository at this point in the history
  • Loading branch information
mahesh-naxa committed Oct 20, 2023
1 parent 216ef04 commit a114e94
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ FROM runtime as prod
USER root
# Get the necessary bits for the health check
RUN apt-get update && \
apt-get install -y curl && \
apt-get install --no-install-recommends -y curl && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
# Pre-compile packages to .pyc (init speed gains)
Expand Down
4 changes: 2 additions & 2 deletions scripts/docker/tasking-manager/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ RUN curl -sL https://deb.nodesource.com/setup_16.x | bash -
# Install dependencies
RUN apt-get update \
&& apt-get upgrade -y \
&& apt-get install -y nodejs libgeos-dev \
&& apt-get install -y --no-install-recommends nodejs libgeos-dev \
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

# Upgrade pip
Expand All @@ -35,7 +35,7 @@ RUN pip install --no-cache-dir pdm \
&& pdm install --prod --no-lock --no-editable

# Setup and build frontend
RUN cd frontend && npm install && npm run build
RUN cd frontend && npm install --ignore-scripts && npm run build

# INITIALIZATION

Expand Down

0 comments on commit a114e94

Please sign in to comment.