Download Dockerfile from danishk84/NovaGuide: direct link, hf CLI and curl.
- Browser
- Download file 772 Bytes
-
https://huggingface.co/spaces/danishk84/NovaGuide/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/danishk84/NovaGuide/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/danishk84/NovaGuide/resolve/main/Dockerfile
772 Bytes
| FROM python:3.11-slim | |
| ENV PYTHONDONTWRITEBYTECODE=1 \ | |
| PYTHONUNBUFFERED=1 \ | |
| GRADIO_SERVER_NAME=0.0.0.0 \ | |
| GRADIO_SERVER_PORT=7860 \ | |
| HF_HOME=/home/novaguide/.cache/huggingface | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| ffmpeg libgl1 libglib2.0-0 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| COPY requirements.txt ./ | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| RUN useradd --create-home --uid 1000 novaguide \ | |
| && chown -R novaguide:novaguide /app /home/novaguide | |
| USER novaguide | |
| EXPOSE 7860 | |
| HEALTHCHECK --interval=30s --timeout=10s --start-period=120s --retries=3 \ | |
| CMD python -c "import urllib.request; urllib.request.urlopen('http://127.0.0.1:7860/', timeout=5)" || exit 1 | |
| CMD ["python", "app.py"] | |