Download Dockerfile from arnaupq2/try: direct link, hf CLI and curl.
- Browser
- Download file 474 Bytes
-
https://huggingface.co/spaces/arnaupq2/try/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/arnaupq2/try/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/arnaupq2/try/resolve/main/Dockerfile
474 Bytes
| FROM python:3.9 | |
| # Install ffmpeg for yt-dlp to work correctly (for merging video/audio) | |
| RUN apt-get update && apt-get install -y ffmpeg && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| # Create downloads folder | |
| RUN mkdir -p downloads && chmod 777 downloads | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| # Expose the port HF expects | |
| EXPOSE 7860 | |
| # Run with Gunicorn | |
| CMD ["gunicorn", "-b", "0.0.0.0:7860", "--timeout", "120", "app:app"] | |