FROM python:3.11-slim WORKDIR /app COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Copy the rest of the app code COPY . /app # Expose port EXPOSE 7860 CMD ["python", "app.py"]