FROM python:3.11-slim WORKDIR /app # Install dependencies COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Copy application files COPY bot.py . COPY vndb_client.py . COPY config.py . COPY utils.py . # Copy environment file (or use docker secrets/environment variables) # COPY .env . # Create non-root user for security RUN useradd -m -u 1000 botuser && chown -R botuser:botuser /app USER botuser # Run the bot CMD ["python", "bot.py"]