Spaces:
Runtime error
Runtime error
Download Dockerfile from appinitdev/FaceID: direct link, hf CLI and curl.
- Browser
- Download file 949 Bytes
-
https://huggingface.co/spaces/appinitdev/FaceID/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/appinitdev/FaceID/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/appinitdev/FaceID/resolve/main/Dockerfile
949 Bytes
| FROM nvidia/cuda:11.8.0-runtime-ubuntu22.04 | |
| # Evitar prompts interactivos durante la instalaci贸n | |
| ENV DEBIAN_FRONTEND=noninteractive | |
| # Instalar dependencias del sistema, Python, compiladores y OpenCV | |
| RUN apt-get update && apt-get install -y \ | |
| python3-pip \ | |
| python3-dev \ | |
| git \ | |
| g++ \ | |
| libgl1-mesa-glx \ | |
| libglib2.0-0 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Configurar el directorio de trabajo | |
| WORKDIR /code | |
| # Copiar el archivo de requerimientos e instalar dependencias | |
| COPY ./requirements.txt /code/requirements.txt | |
| RUN pip3 install --no-cache-dir --upgrade -r /code/requirements.txt | |
| # Configurar permisos para Hugging Face Spaces (corre como usuario 1000) | |
| RUN mkdir -p /code/.cache && chmod -R 777 /code/.cache | |
| ENV HF_HOME=/code/.cache | |
| # Copiar el resto del c贸digo de la aplicaci贸n | |
| COPY . . | |
| # Exponer el puerto por defecto de Hugging Face Spaces (7860) | |
| CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] |