Spaces:
Running
Running
Download Dockerfile from internlm/Intern-Decision: direct link, hf CLI and curl.
- Browser
- Download file 584 Bytes
-
https://huggingface.co/spaces/internlm/Intern-Decision/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/internlm/Intern-Decision/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/internlm/Intern-Decision/resolve/main/Dockerfile
584 Bytes
| FROM python:3.12-slim | |
| ENV PYTHONDONTWRITEBYTECODE=1 \ | |
| PYTHONUNBUFFERED=1 \ | |
| DEVICE=cpu \ | |
| PIP_NO_CACHE_DIR=1 \ | |
| HF_HOME=/home/user/.cache/huggingface \ | |
| HF_HUB_DISABLE_TELEMETRY=1 \ | |
| DO_NOT_TRACK=1 | |
| RUN useradd --create-home --uid 1000 user | |
| WORKDIR /app | |
| RUN pip install --no-cache-dir torch==2.9.1 torchvision==0.24.1 --index-url https://download.pytorch.org/whl/cpu | |
| COPY requirements.txt /app/requirements.txt | |
| RUN pip install --no-cache-dir -r /app/requirements.txt | |
| COPY --chown=user:user . /app | |
| USER user | |
| ENV HOME=/home/user | |
| EXPOSE 7860 | |
| CMD ["bash", "start.sh"] | |