Skip to content

Commit

Permalink
Dockerfile: Reduces layer overhead
Browse files Browse the repository at this point in the history
  • Loading branch information
funkyfuture authored Jan 24, 2022
1 parent 55f4190 commit 6783cff
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]

0 comments on commit 6783cff

Please sign in to comment.