From 6783cffa66ca81474b504ce7f7934c5e4e93569f Mon Sep 17 00:00:00 2001 From: Frank Sachsenheim Date: Mon, 24 Jan 2022 14:40:39 +0100 Subject: [PATCH] Dockerfile: Reduces layer overhead --- Dockerfile | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index bb76dd3..a368a32 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,11 @@ FROM python:3 WORKDIR /app +ENTRYPOINT ["/app/entrypoint.py"] -RUN pip install poetry -RUN poetry config virtualenvs.create false COPY poetry.lock pyproject.toml ./ -RUN poetry install +RUN pip install poetry \ + && poetry config virtualenvs.create false \ + && poetry install COPY . ./ - -ENTRYPOINT ["./entrypoint.py"]