Download Dockerfile from kadarakos/labeled: direct link, hf CLI and curl.
- Browser
- Download file 450 Bytes
-
https://huggingface.co/spaces/kadarakos/labeled/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/kadarakos/labeled/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/kadarakos/labeled/resolve/main/Dockerfile
450 Bytes
| FROM ghcr.io/astral-sh/uv:python3.12-bookworm-slim | |
| WORKDIR /app | |
| ENV UV_COMPILE_BYTECODE=1 | |
| COPY pyproject.toml uv.lock ./ | |
| COPY src ./src | |
| COPY README.md ./ | |
| RUN uv sync --frozen | |
| RUN uv run python -m nltk.downloader punkt punkt_tab | |
| ENV PORT=7860 | |
| EXPOSE 7860 | |
| # Run the app. The 'lifespan' in mentioned.app will handle the download/ONNX export. | |
| CMD ["uv", "run", "python", "-m", "uvicorn", "mentioned.app:app", "--host", "0.0.0.0", "--port", "7860"] | |