Download Dockerfile from ceh-vedant/script-brain-optimizer: direct link, hf CLI and curl.
- Browser
- Download file 613 Bytes
-
https://huggingface.co/spaces/ceh-vedant/script-brain-optimizer/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/ceh-vedant/script-brain-optimizer/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/ceh-vedant/script-brain-optimizer/resolve/main/Dockerfile
613 Bytes
| FROM python:3.11-slim | |
| RUN apt-get update && apt-get install -y \ | |
| git ffmpeg libsm6 libxext6 libgl1 libsndfile1 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| # Install tribev2 and all app dependencies | |
| RUN pip install --no-cache-dir git+https://github.com/facebookresearch/tribev2.git | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Non-root user (HuggingFace Spaces requirement) | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV HOME=/home/user PATH=/usr/local/bin:/home/user/.local/bin:$PATH | |
| WORKDIR /home/user/app | |
| COPY --chown=user app.py . | |
| EXPOSE 7860 | |
| CMD ["python", "app.py"] | |