mirror of
https://github.com/paul-nameless/tg
synced 2024-11-28 14:50:20 +00:00
Update Dockerfile
This commit is contained in:
parent
ca9ff63d81
commit
2507e0f975
1 changed files with 12 additions and 2 deletions
14
Dockerfile
14
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
|
||||
|
|
Loading…
Reference in a new issue