Download Dockerfile from magikdevelopments/transcript-video-audio-flask: direct link, hf CLI and curl.
- Browser
- Download file 681 Bytes
-
https://huggingface.co/spaces/magikdevelopments/transcript-video-audio-flask/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/magikdevelopments/transcript-video-audio-flask/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/magikdevelopments/transcript-video-audio-flask/resolve/main/Dockerfile
681 Bytes
| FROM python:3.9-slim | |
| # Evita errores de interactivos | |
| ENV PYTHONUNBUFFERED=1 | |
| # Instala ffmpeg y dependencias | |
| RUN apt-get update && \ | |
| apt-get install -y ffmpeg && \ | |
| apt-get clean && \ | |
| rm -rf /var/lib/apt/lists/* | |
| # Crea y usa directorio | |
| WORKDIR /app | |
| # Copia todos los archivos | |
| COPY . /app | |
| # Instala dependencias (incluye gunicorn aquí) | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Asegúrate de que gunicorn está en el PATH | |
| RUN which gunicorn | |
| # Puerto que usará Hugging Face | |
| EXPOSE 7860 | |
| # Lanza gunicorn si está en requirements.txt | |
| CMD ["gunicorn", "-w", "4", "-k", "uvicorn.workers.UvicornWorker", "-b", "0.0.0.0:7860", "app:app", "--timeout", "180"] | |