Spaces:
Paused
Paused
Download Dockerfile from ProCreations/branchforge: direct link, hf CLI and curl.
- Browser
- Download file 545 Bytes
-
https://huggingface.co/spaces/ProCreations/branchforge/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/ProCreations/branchforge/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/ProCreations/branchforge/resolve/main/Dockerfile
545 Bytes
| FROM python:3.12-slim | |
| ENV PYTHONDONTWRITEBYTECODE=1 \ | |
| PYTHONUNBUFFERED=1 \ | |
| PORT=7860 | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY app ./app | |
| COPY LICENSE README.md ./ | |
| RUN useradd --create-home --uid 1000 runner && chown -R runner:runner /app | |
| USER runner | |
| EXPOSE 7860 | |
| HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \ | |
| CMD python -c "import urllib.request; urllib.request.urlopen('http://127.0.0.1:7860/api/health', timeout=3)" | |
| CMD ["python", "-m", "app.main"] | |