File size: 431 Bytes
ca726f5 f56a208 ca726f5 0af3c86 ca726f5 0af3c86 f56a208 b638393 ca726f5 2ab0c55 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# Use an official Python runtime as a parent image
FROM python:3.11-slim
# read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker
# you will also find guides on how best to write your Dockerfile
WORKDIR ./
COPY requirements.txt requirements.txt
RUN pip install --no-cache-dir --upgrade -r requirements.txt
RUN pip install --upgrade numpy
COPY . .
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] |