File size: 524 Bytes
3ffbf5e
 
 
bc560c9
 
 
 
3ffbf5e
 
bc560c9
3ffbf5e
 
 
bc560c9
3ffbf5e
 
bc560c9
3ffbf5e
 
bc560c9
3ffbf5e
bc560c9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# 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"]