From fe05ab2eb3ca28cafdb3f5835f5065b7180784b1 Mon Sep 17 00:00:00 2001 From: LeoVerto Date: Thu, 8 Nov 2018 15:03:53 +0100 Subject: [PATCH] Improve build speed by making intermediaries reusable --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index f7c48c8..e8e0de6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,9 +2,11 @@ FROM python:3-alpine WORKDIR /usr/src/app -COPY docker-net-graph.py Pipfile Pipfile.lock ./ +COPY Pipfile Pipfile.lock ./ RUN pip install pipenv RUN pipenv install --system --deploy +COPY docker-net-graph.py ./ + ENTRYPOINT ["python", "docker-net-graph.py"] \ No newline at end of file