Spaces:
Sleeping
Sleeping
Download Dockerfile from Ercik/YOLO_FastAPI2: direct link, hf CLI and curl.
- Browser
- Download file 524 Bytes
-
https://huggingface.co/spaces/Ercik/YOLO_FastAPI2/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Ercik/YOLO_FastAPI2/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Ercik/YOLO_FastAPI2/resolve/main/Dockerfile
524 Bytes
| # Imagen base oficial de Python | |
| FROM python:3.10 | |
| # Instalar dependencias del sistema (libGL para OpenCV) | |
| RUN apt-get update && apt-get install -y libgl1-mesa-glx | |
| # Crear directorio de trabajo | |
| WORKDIR /code | |
| # Instalar dependencias de Python | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copiar la aplicación | |
| COPY app /code/app | |
| # Exponer puerto requerido por Hugging Face | |
| EXPOSE 7860 | |
| # Comando para ejecutar Uvicorn | |
| CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"] | |