Optimize pip install in Dockerfile to minimize image size

This commit is contained in:
Peter Dave Hello 2023-05-19 22:41:14 +08:00
commit 842a2860af
2 changed files with 4 additions and 4 deletions

View file

@ -9,7 +9,7 @@ RUN apt-get update -qq \
&& apt-get clean \
&& rm -rf /var/lib/apt
RUN python -mvenv venv && ./venv/bin/pip install --upgrade pip
RUN python -mvenv venv && ./venv/bin/pip install --no-cache-dir --upgrade pip
COPY . .