Removing the PIP cache from the built image (#4766)

This commit is contained in:
lihan
2020-04-03 20:06:55 +11:00
committed by GitHub
parent f9e3ac7534
commit 7f2a0af841

View File

@@ -49,6 +49,10 @@ RUN apt-get update && \
WORKDIR /app
# Disalbe PIP Cache and Version Check
ENV PIP_DISABLE_PIP_VERSION_CHECK=1
ENV PIP_NO_CACHE_DIR=1
# We first copy only the requirements file, to avoid rebuilding on every file
# change.
COPY requirements.txt requirements_bundles.txt requirements_dev.txt requirements_all_ds.txt ./