Spaces:
Sleeping
Sleeping
Download Dockerfile from zhang0319/MRI-Recurrence-Risk: direct link, hf CLI and curl.
- Browser
- Download file 607 Bytes
-
https://huggingface.co/spaces/zhang0319/MRI-Recurrence-Risk/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/zhang0319/MRI-Recurrence-Risk/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/zhang0319/MRI-Recurrence-Risk/resolve/main/Dockerfile
607 Bytes
| FROM python:3.13-slim | |
| RUN useradd -m -u 1000 user && mkdir -p /home/user/app && chown user:user /home/user/app | |
| WORKDIR /home/user/app | |
| COPY requirements.txt /tmp/requirements.txt | |
| RUN pip install --no-cache-dir torch==2.14.0 --index-url https://download.pytorch.org/whl/cpu | |
| RUN pip install --no-cache-dir -r /tmp/requirements.txt | |
| COPY --chown=user:user site.tar.gz /tmp/site.tar.gz | |
| USER user | |
| RUN tar -xzf /tmp/site.tar.gz -C /home/user/app | |
| ENV HOME=/home/user DEVICE=cpu LOCAL_MODE=0 OMP_NUM_THREADS=2 MKL_NUM_THREADS=2 PYTHONUNBUFFERED=1 HF_HUB_DISABLE_TELEMETRY=1 | |
| EXPOSE 7860 | |
| CMD ["python", "bootstrap.py"] | |