# Use official Python slim image FROM python:3.10-slim # Set working directory inside the container WORKDIR /app # Copy requirements and install dependencies COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Copy all project files COPY . . # Expose HF default port EXPOSE 7860 # Run the Flask app CMD ["python", "run.py"]