Download Dockerfile from lainlives/piper: direct link, hf CLI and curl.
- Browser
- Download file 502 Bytes
-
https://huggingface.co/spaces/lainlives/piper/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/lainlives/piper/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/lainlives/piper/resolve/main/Dockerfile
502 Bytes
| FROM python:3.10-slim | |
| ENV PYTHONDONTWRITEBYTECODE=1 \ | |
| PYTHONUNBUFFERED=1 | |
| # System deps kept minimal; Piper is invoked via CLI | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| ca-certificates \ | |
| && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY app.py . | |
| # Hugging Face Spaces defaults | |
| ENV PORT=7860 HOST=0.0.0.0 | |
| CMD ["uvicorn","app:app","--host","0.0.0.0","--port","7860","--log-level","info"] |