From 0a650a1f331e3f44e9bcb36e284f000abf08ab3d Mon Sep 17 00:00:00 2001 From: Thephaseless Date: Wed, 24 Jul 2024 15:52:30 +0000 Subject: [PATCH] create base dockerfile --- Dockerfile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..c66c2dc --- /dev/null +++ b/Dockerfile @@ -0,0 +1,20 @@ +FROM python:3.11 + +# python +ENV PYTHONUNBUFFERED=1 \ + # prevents python creating .pyc files + PYTHONDONTWRITEBYTECODE=1 \ + # it gets named `.venv` + POETRY_VIRTUALENVS_IN_PROJECT=true \ + # do not ask any interactive question + POETRY_NO_INTERACTION=1\ + HEADLESS=1 + +WORKDIR /app +COPY pyproject.toml poetry.lock ./ +RUN curl -sSL https://install.python-poetry.org | python3 - +ENV PATH="~/.local/share/pypoetry:$PATH" +RUN poetry install + +COPY . . +ENTRYPOINT ["python", "run", "main.py"] \ No newline at end of file