# Dockerfile to deploy our Flask app on a HuggingFace Space FROM python:3.12-slim RUN apt-get update && \ apt-get upgrade -y && \ apt-get install -y gcc && \ apt-get clean COPY ./requirements.txt ./ RUN pip install -r requirements.txt COPY ./app /app EXPOSE 7860 WORKDIR /app ENTRYPOINT gunicorn --bind 0.0.0.0:7860 main:app