Skip to content

Commit

Permalink
build: dockerfile package installs alphabetical (sonarcloud)
Browse files Browse the repository at this point in the history
  • Loading branch information
spwoodcock committed Sep 4, 2024
1 parent 039350d commit 42eb817
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ WORKDIR /opt/python
# Setup backend build-time dependencies
RUN apt-get update && apt-get install --no-install-recommends -y \
build-essential \
postgresql-server-dev-15 \
python3-dev \
libffi-dev \
libgeos-dev
libgeos-dev \
postgresql-server-dev-15 \
python3-dev

Check notice

Code scanning / SonarCloud

Arguments in long RUN instructions should be sorted Low

Sort these package names alphanumerically. See more on SonarCloud
# Setup backend Python dependencies
COPY --from=extract-deps \
/opt/python/requirements.txt /opt/python/
Expand All @@ -62,7 +62,7 @@ ENV PYTHONDONTWRITEBYTECODE=1 \
# Setup backend runtime dependencies
RUN apt-get update && \
apt-get install --no-install-recommends -y \
postgresql-client libgeos3.11.1 proj-bin && \
libgeos3.11.1 postgresql-client proj-bin && \
apt-get clean && rm -rf /var/lib/apt/lists/*
COPY --from=build \
/home/appuser/.local \
Expand Down

0 comments on commit 42eb817

Please sign in to comment.