Download Dockerfile from udgamlabs/biocell: direct link, hf CLI and curl.
- Browser
- Download file 646 Bytes
-
https://huggingface.co/spaces/udgamlabs/biocell/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/udgamlabs/biocell/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/udgamlabs/biocell/resolve/main/Dockerfile
646 Bytes
| FROM python:3.11-slim | |
| ENV PYTHONUNBUFFERED=1 \ | |
| PIP_NO_CACHE_DIR=1 \ | |
| PORT=7860 | |
| # CPU-only PyTorch from the PyTorch CPU index, then the small rest | |
| RUN pip install --index-url https://download.pytorch.org/whl/cpu torch | |
| COPY requirements.txt /tmp/requirements.txt | |
| RUN pip install -r /tmp/requirements.txt | |
| # Hugging Face Docker Spaces run as user 1000 | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV HOME=/home/user \ | |
| PATH=/home/user/.local/bin:$PATH \ | |
| HF_HOME=/home/user/.cache/huggingface | |
| WORKDIR $HOME/app | |
| COPY --chown=user app.py ./ | |
| COPY --chown=user sdk ./sdk | |
| COPY --chown=user static ./static | |
| EXPOSE 7860 | |
| CMD ["python", "app.py"] | |