Spaces:
Sleeping
Sleeping
Download Dockerfile from kamp0010/lyric-sync-api: direct link, hf CLI and curl.
- Browser
- Download file 644 Bytes
-
https://huggingface.co/spaces/kamp0010/lyric-sync-api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/kamp0010/lyric-sync-api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/kamp0010/lyric-sync-api/resolve/main/Dockerfile
644 Bytes
| FROM python:3.11 | |
| WORKDIR /app | |
| # Install system dependencies (ffmpeg is required for audio processing) | |
| RUN apt-get update && apt-get install -y ffmpeg | |
| # Copy requirements and install | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy application code | |
| COPY . . | |
| # Create a user to avoid running as root (security best practice required by HF) | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV HOME=/home/user \ | |
| PATH=/home/user/.local/bin:$PATH | |
| # Expose port 7860 (Hugging Face default port) | |
| EXPOSE 7860 | |
| # Start command | |
| CMD ["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "7860"] | |