Skip to content

Commit

Permalink
added pip update line
Browse files Browse the repository at this point in the history
  • Loading branch information
deronsmith committed Nov 27, 2023
1 parent b03f7bb commit 37bb177
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,13 @@ ENV PATH /src:/src/hms_flask/:$CONDA_ENV:$PATH
# ------------------------- #
# Removes all pips from image to "resolve" open Prisma CVE:
# (NOTE: No very sustainable, will break with higher version of Python.)
RUN rm -rf \
/home/www-data/pyenv/lib/python3.10/site-packages/pip* \
/home/www-data/pyenv/bin/pip \
/opt/conda/lib/python3.10/site-packages/pip* \
/opt/conda/bin/pip \
/root/.cache/pip
#RUN rm -rf \
# /home/www-data/pyenv/lib/python3.10/site-packages/pip* \
# /home/www-data/pyenv/bin/pip \
# /opt/conda/lib/python3.10/site-packages/pip* \
# /opt/conda/bin/pip \
# /root/.cache/pip
RUN python3 -m pip install --upgrade pip

RUN apk del gfortran
RUN rm -R /opt/conda/pkgs/postgres*
Expand Down

0 comments on commit 37bb177

Please sign in to comment.