# Use an official Python runtime as base FROM python:3.12-slim # Set working directory WORKDIR /app # Copy requirements and install COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Copy the rest of the code (app.py, index.html, etc.) COPY . . # Expose port (Render/HF will honor this) EXPOSE 9032 # Start the Flask app CMD ["python", "app.py"]