Spaces:
Sleeping
Sleeping
Download Dockerfile from PoppyPepperPie2894/syncnet_space: direct link, hf CLI and curl.
- Browser
- Download file 708 Bytes
-
https://huggingface.co/spaces/PoppyPepperPie2894/syncnet_space/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/PoppyPepperPie2894/syncnet_space/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/PoppyPepperPie2894/syncnet_space/resolve/main/Dockerfile
708 Bytes
| # Use Python 3.9 | |
| FROM python:3.9-slim | |
| # Set working directory | |
| WORKDIR /app | |
| # Install system dependencies (Fixes issues with cv2 and soundfile) | |
| RUN apt-get update && apt-get install -y \ | |
| ffmpeg \ | |
| libsm6 \ | |
| libxext6 \ | |
| libsndfile1 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Copy requirements and install python packages | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy all your app code | |
| COPY . . | |
| # Create a user (Hugging Face security requirement) | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV HOME=/home/user \ | |
| PATH=/home/user/.local/bin:$PATH | |
| # Run the app on port 7860 (Hugging Face Default) | |
| CMD ["gunicorn", "-b", "0.0.0.0:7860", "app:app", "--timeout", "120"] |