FROM python:3.10-slim WORKDIR /app # Upgrade pip RUN pip install --no-cache-dir --upgrade pip # Copy requirements and install COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Copy bot script COPY bot.py . # Create a writable directory for sessions (optional, but good practice) RUN mkdir sessions RUN chmod 777 sessions # Command to run CMD ["python", "bot.py"]