Spaces:
Sleeping
Sleeping
Download Dockerfile from ranggapr2000/rvc_api: direct link, hf CLI and curl.
- Browser
- Download file 425 Bytes
-
https://huggingface.co/spaces/ranggapr2000/rvc_api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/ranggapr2000/rvc_api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/ranggapr2000/rvc_api/resolve/main/Dockerfile
425 Bytes
| FROM python:3.10 | |
| WORKDIR /app | |
| COPY . . | |
| RUN apt-get update && apt-get install -y ffmpeg | |
| RUN pip install --no-cache-dir -r requirements/main.txt | |
| EXPOSE 7860 | |
| ENV TEMP_DIR=/app/outputs | |
| ENV MODELS_DIR=/app/models | |
| ENV NUMBA_CACHE_DIR=/tmp/numba_cache | |
| ENV NUMBA_DISABLE_CACHING=1 | |
| RUN mkdir -p $TEMP_DIR | |
| RUN chmod -R 777 $MODELS_DIR && chmod -R 777 $TEMP_DIR | |
| CMD ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "7860"] | |