Optimize pip install in Dockerfile to minimize image size
This commit is contained in:
parent
6c5f27d7f1
commit
842a2860af
2 changed files with 4 additions and 4 deletions
|
|
@ -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 . .
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue