From 7f3eda5bb9bc32f9d93b5e649358e805bcde26ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Ml=C3=A1dek?= Date: Sat, 27 Feb 2021 10:38:49 +0100 Subject: [PATCH] add dockerfile --- Dockerfile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..892710e --- /dev/null +++ b/Dockerfile @@ -0,0 +1,20 @@ +FROM python:3 + +ENV PYTHONFAULTHANDLER=1 \ + PYTHONUNBUFFERED=1 \ + PYTHONHASHSEED=random \ + PIP_NO_CACHE_DIR=off \ + PIP_DISABLE_PIP_VERSION_CHECK=on \ + PIP_DEFAULT_TIMEOUT=100 + +RUN pip install poetry + +WORKDIR /app +COPY poetry.lock pyproject.toml /app/ + +RUN poetry config virtualenvs.create false \ + && poetry install --no-dev --no-interaction --no-ansi + +COPY . /app + +CMD python bot.py \ No newline at end of file