# Use an official Python base image FROM python:3.9-slim # Create a working directory WORKDIR /code # Copy requirements and install dependencies COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Copy the rest of the app COPY . . # Expose the port expected by Hugging Face Spaces EXPOSE 7860 # Run your Flask app CMD ["python", "app.py"]