dockerize

This commit is contained in:
2025-05-25 16:26:58 +02:00
parent 1748432ddb
commit 4281aafc61
5 changed files with 227 additions and 1 deletions

22
Dockerfile Normal file
View File

@ -0,0 +1,22 @@
FROM python:3.10-slim
# Set working directory
WORKDIR /app
# Set environment variables
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
PYTHONFAULTHANDLER=1
# Install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application code
COPY . .
# Create logs directory
RUN mkdir -p logs && chmod 777 logs
# Run the bot
CMD ["python", "main.py"]