Spaces:
Sleeping
Sleeping
Download Dockerfile from viktfb/sandbox-1a4252ef: direct link, hf CLI and curl.
- Browser
- Download file 662 Bytes
-
https://huggingface.co/spaces/viktfb/sandbox-1a4252ef/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/viktfb/sandbox-1a4252ef/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/viktfb/sandbox-1a4252ef/resolve/main/Dockerfile
662 Bytes
| FROM ghcr.io/astral-sh/uv:python3.12-bookworm-slim | |
| RUN apt-get update && \ | |
| apt-get install -y \ | |
| bash git git-lfs wget curl procps \ | |
| htop vim nano jq tmux \ | |
| build-essential && \ | |
| rm -rf /var/lib/apt/lists/* | |
| RUN uv pip install --system fastapi uvicorn python-multipart | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV HOME=/home/user \ | |
| PATH=/home/user/.local/bin:$PATH \ | |
| PIP_USER=1 \ | |
| HF_HUB_DISABLE_PROGRESS_BARS=1 \ | |
| TQDM_DISABLE=1 \ | |
| HF_HUB_ENABLE_HF_TRANSFER=1 \ | |
| UV_NO_PROGRESS=1 \ | |
| PYTHONWARNINGS=ignore::DeprecationWarning | |
| WORKDIR /app | |
| COPY --chown=user . /app | |
| EXPOSE 7860 | |
| CMD ["python", "sandbox_server.py"] | |