From 4d9f8ec269501e4ca49757d3f5dae327c6ad7173 Mon Sep 17 00:00:00 2001 From: Vahid Al Date: Tue, 7 Jan 2025 14:10:00 +0330 Subject: [PATCH] Create Dockerfile --- Dockerfile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..f3d87c3 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,20 @@ +FROM python:3.11-slim + +WORKDIR /app + +RUN apt-get update && apt-get install -y --no-install-recommends curl git \ + && curl -sSL https://install.python-poetry.org | python3 - \ + && apt-get clean \ + && rm -rf /var/lib/apt/lists/* + +ENV PATH="/root/.local/bin:$PATH" + +COPY . /app + +RUN poetry install --no-root + +RUN poetry run python script.py + +VOLUME ["/app/dist"] + +CMD ["tail", "-f", "/dev/null"]