Download Dockerfile from RuiRuihigh/hyperion-audio-api: direct link, hf CLI and curl.
- Browser
- Download file 386 Bytes
-
https://huggingface.co/spaces/RuiRuihigh/hyperion-audio-api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/RuiRuihigh/hyperion-audio-api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/RuiRuihigh/hyperion-audio-api/resolve/main/Dockerfile
386 Bytes
| FROM python:3.12-slim | |
| RUN apt-get update && apt-get install -y --no-install-recommends ffmpeg libsndfile1 && rm -rf /var/lib/apt/lists/* | |
| RUN useradd -m -u 1000 app | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY --chown=app:app app ./app | |
| USER app | |
| EXPOSE 7860 | |
| CMD ["uvicorn","app.main:app","--host","0.0.0.0","--port","7860","--workers","1"] | |