Spaces:
Paused
Paused
Download Dockerfile from haxwitcher/restest: direct link, hf CLI and curl.
- Browser
- Download file 684 Bytes
-
https://huggingface.co/spaces/haxwitcher/restest/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/haxwitcher/restest/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/haxwitcher/restest/resolve/main/Dockerfile
684 Bytes
| # ---------- OS + FFmpeg ---------- | |
| FROM python:3.10-slim | |
| RUN apt-get update && apt-get install -y ffmpeg | |
| # ---------- kreiraj korisnika UID-1000 (tako Spaces i onako rade) ---------- | |
| RUN useradd -m -u 1000 user | |
| # ---------- pređi na tog korisnika ---------- | |
| USER user | |
| ENV HOME=/home/user \ | |
| PATH=/home/user/.local/bin:$PATH | |
| # ---------- radni direktorijum ---------- | |
| WORKDIR $HOME/app | |
| # ---------- Python zavisnosti ---------- | |
| COPY --chown=user requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # ---------- aplikacioni kod ---------- | |
| COPY --chown=user . . | |
| # ---------- start ---------- | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] | |