Skip to content

Commit

Permalink
Dockerfile: only install git in test
Browse files Browse the repository at this point in the history
This avoids CVE-2018-1000021.
  • Loading branch information
pjonsson authored and omad committed Apr 7, 2024
1 parent 7b72e95 commit a955292
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,15 @@ ENV DEBIAN_FRONTEND=noninteractive \
RUN apt-get update && \
apt-get upgrade -y && \
apt-get install -y --no-install-recommends \
git \
# For Psycopg2
libpq5 \
tini \
postgresql-client \
python3-pip \
&& apt-get autoclean && \
&& ([ "$ENVIRONMENT" = "deployment" ] || \
apt-get install -y --no-install-recommends \
git) && \
apt-get autoclean && \
apt-get autoremove && \
rm -rf /var/lib/{apt,dpkg,cache,log}

Expand Down

0 comments on commit a955292

Please sign in to comment.