Initial release
This commit is contained in:
21
Dockerfile
Normal file
21
Dockerfile
Normal file
@@ -0,0 +1,21 @@
|
||||
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"]
|
||||
Reference in New Issue
Block a user