xcurv's picture
Update Dockerfile
19d1fa8 verified
raw
history blame contribute delete
702 Bytes
# 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.9
WORKDIR /code
COPY ./requirements.txt /code/requirements.txt
RUN apt-get update && apt-get install ffmpeg libsm6 libxext6 -y
RUN curl -o models.h5 "https://drive.usercontent.google.com/download?id=1T5HGnk9Mxlb5G6FTxp26BWSrTpzbjtP2&export=download&authuser=0"
RUN curl -o best.pt "https://drive.usercontent.google.com/download?id=1qG-tEw5j7P1hPQxTlDrXun32gRp3v3DA&export=download&authuser=0"
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
RUN mkdir input
COPY . .
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]