From 2507e0f97510c54fe5f8b76b69b8c38e4dee319f Mon Sep 17 00:00:00 2001 From: Paul Nameless Date: Tue, 27 Apr 2021 08:23:25 +0300 Subject: [PATCH] Update Dockerfile --- Dockerfile | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 945737f..fdf8440 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,15 @@ FROM python:3.9.4-slim-buster -RUN pip install tg +WORKDIR /app -CMD tg +ENV PYTHONPATH=/app + +RUN pip3 install --disable-pip-version-check --no-cache-dir poetry + +COPY poetry.lock pyproject.toml /app/ + +RUN poetry config virtualenvs.create false && poetry install --no-interaction --no-ansi --no-dev + +COPY . /app + +CMD python3 -m tg