Download Dockerfile from Shafiq786/vibesync: direct link, hf CLI and curl.
- Browser
- Download file 735 Bytes
-
https://huggingface.co/spaces/Shafiq786/vibesync/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Shafiq786/vibesync/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Shafiq786/vibesync/resolve/main/Dockerfile
735 Bytes
| # 1. Slim image use karenge fast build ke liye | |
| FROM python:3.9-slim | |
| # 2. System dependencies (Fixed for Trixie/Debian latest) | |
| RUN apt-get update && apt-get install -y \ | |
| libgl1 \ | |
| libglx-mesa0 \ | |
| libglib2.0-0 \ | |
| ffmpeg \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # 3. Working directory | |
| WORKDIR /app | |
| # 4. Requirements copy aur install karein | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # 5. Sara code copy karein | |
| COPY . . | |
| # 6. Folder permissions (Force create) | |
| RUN mkdir -p /app/static/uploads && chmod -R 777 /app/static/uploads | |
| # 7. Environment variable set karein taaki logs foran dikhein | |
| ENV PYTHONUNBUFFERED=1 | |
| # 8. Hugging Face port | |
| EXPOSE 7860 | |
| # 9. Run the app | |
| CMD ["python", "app.py"] | |