Added --no-cache-dir option to all Python pip commands in Dockerfiles (#113)

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-22 09:01:41 +00:00
committed by GitHub
parent a2cf9cc9f3
commit a42a8531ab
4 changed files with 4 additions and 4 deletions

View File

@@ -2,7 +2,7 @@ FROM python:3.7-alpine
EXPOSE 8000
WORKDIR /app
COPY requirements.txt /app
RUN pip3 install -r requirements.txt
RUN pip3 install -r requirements.txt --no-cache-dir
COPY . /app
ENTRYPOINT ["python3"]
CMD ["manage.py", "runserver", "0.0.0.0:8000"]