FROM python:3.10-slim WORKDIR /app # Copy requirements first (for caching) COPY requirements.txt . # Install dependencies (cached) RUN pip install --no-cache-dir flask requests # Copy app COPY app.py . EXPOSE 7860 CMD ["python", "app.py"]