FROM python:3.12-slim # Set workdir WORKDIR /app # Copy requirements first (better caching) COPY requirements.txt . # Install Python dependencies RUN pip install --no-cache-dir -r requirements.txt # Copy source code COPY . . # Run script CMD ["python", "main.py"]