Spaces:
Runtime error
Runtime error
Download Dockerfile from zinoubm/ClientTest: direct link, hf CLI and curl.
- Browser
- Download file 476 Bytes
-
https://huggingface.co/spaces/zinoubm/ClientTest/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/zinoubm/ClientTest/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/zinoubm/ClientTest/resolve/main/Dockerfile
476 Bytes
| FROM python:3.9-slim-buster | |
| WORKDIR /app | |
| # install dependencies | |
| COPY ./requirements.txt /app | |
| RUN pip install --no-cache-dir --upgrade -r requirements.txt | |
| RUN apt-get update && apt-get install -y libsndfile1 | |
| RUN apt-get update && apt-get install -y ffmpeg | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV HOME=/home/user \ | |
| PATH=/home/user/.local/bin:$PATH | |
| WORKDIR $HOME/app | |
| COPY --chown=user . $HOME/app | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8010"] | |