Spaces:
Paused
Paused
Download Dockerfile from iteratehack/deepbattler: direct link, hf CLI and curl.
- Browser
- Download file 434 Bytes
-
https://huggingface.co/spaces/iteratehack/deepbattler/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/iteratehack/deepbattler/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/iteratehack/deepbattler/resolve/main/Dockerfile
434 Bytes
| FROM pytorch/pytorch:2.3.1-cuda12.1-cudnn8-runtime | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV PATH="/home/user/.local/bin:$PATH" | |
| WORKDIR /app | |
| COPY --chown=user requirements.txt ./requirements.txt | |
| RUN pip install --no-cache-dir --upgrade pip && \ | |
| pip install --no-cache-dir -r requirements.txt | |
| COPY --chown=user . /app | |
| ENV HF_HOME=/home/user/.cache/huggingface | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |