# Use Python 3.10 base image FROM python:3.10 # Set working directory WORKDIR /app # Copy all files into the container COPY . . # Install dependencies from requirements.txt COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Expose backend port EXPOSE 7860 # Run the Flask app directly (safe for Hugging Face Spaces) CMD ["python", "app.py"]