Spaces:
Build error
Build error
Download Dockerfile from OnePunchMonk101010/final: direct link, hf CLI and curl.
- Browser
- Download file 1.33 kB
-
https://huggingface.co/spaces/OnePunchMonk101010/final/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/OnePunchMonk101010/final/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/OnePunchMonk101010/final/resolve/main/Dockerfile
1.33 kB
| FROM docker.io/library/python:3.10@sha256:11edd7f5ed19b19adfc91d3384970da0787d53cf290a54db5f96b4dab645da6d | |
| # Install essential packages | |
| RUN apt-get update && \ | |
| apt-get install -y \ | |
| build-essential \ | |
| python3-dev \ | |
| python3-pip \ | |
| git \ | |
| git-lfs \ | |
| ffmpeg \ | |
| libsm6 \ | |
| libxext6 \ | |
| cmake \ | |
| libgl1-mesa-glx \ | |
| && \ | |
| rm -rf /var/lib/apt/lists/* | |
| # Upgrade pip to the latest version | |
| RUN pip install --no-cache-dir --upgrade pip | |
| # Install required Python packages | |
| RUN pip install --no-cache-dir datasets "huggingface-hub>=0.19" "hf-transfer>=0.1.4" "protobuf<4" "click<8.1" "pydantic~=1.0" | |
| # Create a non-root user | |
| RUN useradd -m -u 1000 user | |
| # Install additional system dependencies from pre-requirements.txt | |
| RUN --mount=target=/root/packages.txt,source=packages.txt \ | |
| xargs -r -a /root/packages.txt apt-get install -y && \ | |
| rm -rf /var/lib/apt/lists/* | |
| # Set the working directory | |
| WORKDIR /home/user/app | |
| # Install Python dependencies from pre-requirements.txt | |
| RUN --mount=target=pre-requirements.txt,source=pre-requirements.txt \ | |
| pip install --no-cache-dir -r pre-requirements.txt | |
| # Upgrade pip and install Python dependencies from requirements.txt | |
| RUN pip install --upgrade pip && pip install --no-cache-dir -r requirements.txt | |