Skip to content

Commit

Permalink
Added fix for Trivy scan on pip
Browse files Browse the repository at this point in the history
  • Loading branch information
simao-silva committed Nov 4, 2023
1 parent 1d5e928 commit d074846
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions Dockerfile.debian
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,9 @@ RUN apt-get update && \
apt-get clean && \
rm -rf /tmp/* /var/lib/apt/lists/* /var/tmp/* /usr/share/doc /usr/share/man

# Fix for vulnerabilities reported by Trivy
RUN apt-get update && \
apt-get upgrade -y libc-bin libc6 && \
apt-get autoremove -y && \
apt-get clean && \
rm -rf /tmp/* /var/lib/apt/lists/* /var/tmp/* /usr/share/doc /usr/share/man
# Fix vulnerabilities reported by Trivy
ARG PIP_VERSION
RUN /usr/local/bin/pip install --upgrade pip=="${PIP_VERSION}"

# Enable custom virtual environment
ENV VIRTUAL_ENV=/opt/venv
Expand Down

0 comments on commit d074846

Please sign in to comment.