Spaces:
Sleeping
Sleeping
Download Dockerfile from MercuryNex/dockerfix: direct link, hf CLI and curl.
- Browser
- Download file 603 Bytes
-
https://huggingface.co/spaces/MercuryNex/dockerfix/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/MercuryNex/dockerfix/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/MercuryNex/dockerfix/resolve/main/Dockerfile
603 Bytes
| FROM python:3.10 | |
| RUN apt-get update && apt-get install -y \ | |
| git \ | |
| git-lfs \ | |
| ffmpeg \ | |
| libsm6 \ | |
| libxext6 \ | |
| cmake \ | |
| rsync \ | |
| libgl1 \ | |
| libegl1 \ | |
| libopengl0 \ | |
| && rm -rf /var/lib/apt/lists/* \ | |
| && git lfs install | |
| WORKDIR /home/user/app | |
| COPY . . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| ENV XDG_CACHE_HOME=/home/user/.cache | |
| ENV TRANSFORMERS_CACHE=/home/user/.cache/huggingface/transformers | |
| ENV HF_HOME=/home/user/.cache/huggingface | |
| RUN mkdir -p /home/user/.cache/huggingface/transformers && chown -R 1000:1000 /home/user/.cache | |
| CMD ["python", "app.py"] | |