Download Dockerfile from DibaAi/Decho: direct link, hf CLI and curl.
- Browser
- Download file 544 Bytes
-
https://huggingface.co/spaces/DibaAi/Decho/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/DibaAi/Decho/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/DibaAi/Decho/resolve/main/Dockerfile
544 Bytes
| FROM python:3.11-slim | |
| RUN apt-get update && apt-get install -y --no-install-recommends libsndfile1 ffmpeg && rm -rf /var/lib/apt/lists/* | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV HOME=/home/user PATH=/home/user/.local/bin:$PATH HF_HUB_DISABLE_PROGRESS_BARS=1 PYTHONUNBUFFERED=1 | |
| WORKDIR /home/user/app | |
| COPY --chown=user requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY --chown=user . . | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860", "--workers", "1", "--proxy-headers", "--forwarded-allow-ips", "*"] | |