Download Dockerfile from AnyaXZero/HazelUb: direct link, hf CLI and curl.
- Browser
- Download file 635 Bytes
-
https://huggingface.co/spaces/AnyaXZero/HazelUb/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/AnyaXZero/HazelUb/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/AnyaXZero/HazelUb/resolve/main/Dockerfile
635 Bytes
| FROM python:3.10-slim | |
| # Install system dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| git \ | |
| bash \ | |
| dnsutils \ | |
| curl \ | |
| ffmpeg \ | |
| sudo \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Working directory | |
| WORKDIR /app | |
| # Copy launcher | |
| COPY app.py . | |
| # Install Python dependencies | |
| RUN pip install --no-cache-dir fastapi uvicorn | |
| # HuggingFace Spaces port | |
| EXPOSE 7860 | |
| # Startup: try to change DNS then start server | |
| CMD sh -c 'echo "nameserver 1.1.1.1" | sudo tee /etc/resolv.conf >/dev/null 2>&1; \ | |
| echo "nameserver 1.0.0.1" | sudo tee -a /etc/resolv.conf >/dev/null 2>&1; \ | |
| uvicorn app:app --host 0.0.0.0 --port 7860' |