1
0
Fork 0
mirror of https://github.com/docker/awesome-compose.git synced 2025-04-26 10:43:35 +02:00

Added --no-cache-dir option to all Python pip commands in Dockerfiles

The cache gives no benefit to a Docker image but it does add size, hence it's best left out.

Signed-off-by: Andy Madge <andymadge@gmail.com>
This commit is contained in:
Andy Madge 2021-03-21 22:51:02 +00:00
parent a92c067f75
commit 82239d0424
4 changed files with 4 additions and 4 deletions

View file

@ -1,7 +1,7 @@
FROM python:3.8-alpine
WORKDIR /code
COPY requirements.txt /code/
RUN pip install -r requirements.txt
RUN pip install -r requirements.txt --no-cache-dir
COPY . /code/
ENV FLASK_APP hello.py
CMD flask run --host=0.0.0.0