22 lines
407 B
Docker
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"]
|