tg/Dockerfile

16 lines
312 B
Docker
Raw Permalink Normal View History

FROM python:3.9.4-slim-buster
2021-04-27 05:23:25 +00:00
WORKDIR /app
2021-04-27 05:23:25 +00:00
ENV PYTHONPATH=/app
RUN pip3 install --disable-pip-version-check --no-cache-dir poetry
COPY poetry.lock pyproject.toml /app/
2021-04-28 09:23:44 +00:00
RUN poetry config virtualenvs.create false && poetry install --no-interaction --no-ansi --no-dev --no-root
2021-04-27 05:23:25 +00:00
COPY . /app
CMD python3 -m tg