Adds extra step to Dockerfile build to take advantage of layer caching and avoid repulling dependencies in requirements.txt if they don't change

This commit is contained in:
Winterflower 2019-11-27 21:05:02 +01:00
parent 83d0c3de38
commit 9ab411984a

View File

@ -2,6 +2,9 @@ ARG PYTHON_VERSION=3
FROM python:${PYTHON_VERSION}
WORKDIR /code/eland
COPY requirements-dev.txt .
RUN pip install -r requirements-dev.txt
COPY . .
RUN chmod +x ./run_build.sh
RUN pip install -r requirements-dev.txt