FROM python:3.9 # Set working directory inside the container WORKDIR /code # Install dependencies COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Copy the rest of the app COPY . . # Expose Hugging Face default port EXPOSE 7860 # Start the Flask app with Gunicorn CMD ["gunicorn", "app:app", "--bind", "0.0.0.0:7860"]