Spaces:
Paused
Paused
Download Dockerfile from Ufoptg/UFoP-API: direct link, hf CLI and curl.
- Browser
- Download file 584 Bytes
-
https://huggingface.co/spaces/Ufoptg/UFoP-API/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Ufoptg/UFoP-API/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Ufoptg/UFoP-API/resolve/main/Dockerfile
584 Bytes
| FROM rendyprojects/python:latest | |
| WORKDIR /app/ | |
| RUN apt -qq update | |
| RUN apt -qq install -y --no-install-recommends \ | |
| curl \ | |
| git \ | |
| gnupg2 \ | |
| unzip \ | |
| wget \ | |
| python3-pip \ | |
| ffmpeg \ | |
| neofetch | |
| COPY . . | |
| RUN pip install --no-cache-dir --upgrade pip setuptools wheel | |
| RUN pip install --no-cache-dir "setuptools<65.0" | |
| RUN pip install --no-cache-dir -U motor | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| RUN chown -R 1000:0 . | |
| RUN chmod 777 . | |
| RUN chown -R 1000:0 /usr | |
| RUN chmod 777 /usr | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] |