From 9ab411984a65a9e5e55448868ef666ab34e3ae5d Mon Sep 17 00:00:00 2001 From: Winterflower Date: Wed, 27 Nov 2019 21:05:02 +0100 Subject: [PATCH] Adds extra step to Dockerfile build to take advantage of layer caching and avoid repulling dependencies in requirements.txt if they don't change --- .ci/Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.ci/Dockerfile b/.ci/Dockerfile index d5aca11..c966d2b 100644 --- a/.ci/Dockerfile +++ b/.ci/Dockerfile @@ -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 +