Spaces:
Sleeping
Sleeping
Download Dockerfile from kameshcodes/value-at-risk: direct link, hf CLI and curl.
- Browser
- Download file 365 Bytes
-
https://huggingface.co/spaces/kameshcodes/value-at-risk/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/kameshcodes/value-at-risk/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/kameshcodes/value-at-risk/resolve/main/Dockerfile
365 Bytes
| FROM python:3.13-slim AS builder | |
| COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/uv | |
| WORKDIR /app | |
| COPY pyproject.toml uv.lock ./ | |
| RUN uv sync --frozen --no-dev | |
| FROM python:3.13-slim | |
| WORKDIR /app | |
| COPY --from=builder /app/.venv /app/.venv | |
| COPY app.py config.yaml ./ | |
| COPY src/ src/ | |
| ENV PATH="/app/.venv/bin:$PATH" | |
| EXPOSE 7860 | |
| CMD ["python", "app.py"] | |