Improve build speed by making intermediaries reusable

This commit is contained in:
LeoVerto 2018-11-08 15:03:53 +01:00
parent ba2ca68284
commit fe05ab2eb3

View file

@ -2,9 +2,11 @@ FROM python:3-alpine
WORKDIR /usr/src/app WORKDIR /usr/src/app
COPY docker-net-graph.py Pipfile Pipfile.lock ./ COPY Pipfile Pipfile.lock ./
RUN pip install pipenv RUN pip install pipenv
RUN pipenv install --system --deploy RUN pipenv install --system --deploy
COPY docker-net-graph.py ./
ENTRYPOINT ["python", "docker-net-graph.py"] ENTRYPOINT ["python", "docker-net-graph.py"]