Files
EduCatBot/Dockerfile
Alessandro Santini 96ba1dfa1b Initial release
2025-02-02 10:21:16 +01:00

22 lines
407 B
Docker

FROM python:3.13-rc-slim
# Set working directory
WORKDIR /app
# Install Poetry
RUN pip install poetry
# Copy project files
COPY pyproject.toml poetry.lock ./
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
# Run the bot
CMD ["python", "main.py"]