From 47f5d4921b52d1bb4fb26b51c5fe16ee42cb6408 Mon Sep 17 00:00:00 2001 From: Alessandro Santini Date: Sun, 2 Feb 2025 10:33:48 +0100 Subject: [PATCH] Fixed dockerfile --- Dockerfile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 888f3a7..f8cea57 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,15 +7,14 @@ WORKDIR /app RUN pip install poetry # Copy project files -COPY pyproject.toml poetry.lock ./ +COPY pyproject.toml poetry.lock README.md ./ COPY main.py . -COPY .env . # Configure Poetry to not create a virtual environment RUN poetry config virtualenvs.create false -# Install dependencies -RUN poetry install --no-dev --no-interaction --no-ansi +# Install dependencies (only production) +RUN poetry install --only main --no-interaction --no-ansi --no-root # Run the bot CMD ["python", "main.py"]