# read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker | |
# you will also find guides on how best to write your Dockerfile | |
FROM python:3.12 | |
WORKDIR /code | |
COPY . . | |
COPY ./templates . | |
RUN pip install --no-cache-dir flask gunicorn | |
CMD ["gunicorn","-w","4","-b","0.0.0.0:7860", "app:app"] | |