Spaces:
Sleeping
Sleeping
Download Dockerfile from 2cylu2/Matchering: direct link, hf CLI and curl.
- Browser
- Download file 572 Bytes
-
https://huggingface.co/spaces/2cylu2/Matchering/resolve/refs%2Fpr%2F2/Dockerfile
- Command line
-
hf download hf://spaces/2cylu2/Matchering@refs/pr/2/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/2cylu2/Matchering/resolve/refs%2Fpr%2F2/Dockerfile
572 Bytes
| FROM python:3.10 | |
| # Install system dependencies | |
| RUN apt-get update && \ | |
| apt-get install -y ffmpeg libsndfile1 git-lfs && \ | |
| git lfs install | |
| # Create non-root user | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV PATH="/home/user/.local/bin:$PATH" | |
| WORKDIR /app | |
| # Copy requirements first (better Docker caching) | |
| COPY --chown=user requirements.txt requirements.txt | |
| RUN pip install --no-cache-dir --upgrade pip | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy entire repo (including pyharp folder) | |
| COPY --chown=user . /app | |
| EXPOSE 7860 | |
| CMD ["python", "app.py"] | |