Spaces:
Sleeping
Sleeping
Download Dockerfile from bor/lr-text-classification: direct link, hf CLI and curl.
- Browser
- Download file 458 Bytes
-
https://huggingface.co/spaces/bor/lr-text-classification/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/bor/lr-text-classification/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/bor/lr-text-classification/resolve/main/Dockerfile
458 Bytes
| FROM python:3.12-slim | |
| COPY --from=ghcr.io/astral-sh/uv:0.8.3 /uv /bin/uv | |
| RUN useradd -m -u 1000 user | |
| ENV PATH="/home/user/.local/bin:$PATH" | |
| ENV UV_SYSTEM_PYTHON=1 | |
| WORKDIR /app | |
| RUN mkdir -p /app && chown -R user:user /app | |
| COPY --chown=user ./pyproject.toml ./uv.lock ./app.py ./*.csv /app | |
| RUN chmod -R u+w /app | |
| USER user | |
| RUN uv sync | |
| CMD ["uv", "run", "marimo", "run", "app.py", "--no-sandbox", "--include-code", "--host", "0.0.0.0", "--port", "7860"] | |