Ercik commited on
Commit
bc560c9
verified
1 Parent(s): 0aedaf9

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -5
Dockerfile CHANGED
@@ -1,18 +1,22 @@
1
  # Imagen base oficial de Python
2
  FROM python:3.10
3
 
4
- # Establecer el directorio de trabajo dentro del contenedor
 
 
 
5
  WORKDIR /code
6
 
7
- # Copiar los archivos necesarios
8
  COPY requirements.txt .
9
  RUN pip install --no-cache-dir -r requirements.txt
10
 
11
- # Copiar el c贸digo de la aplicaci贸n
12
  COPY app /code/app
13
 
14
- # Exponer el puerto (HF Spaces usa 7860 por convenci贸n)
15
  EXPOSE 7860
16
 
17
- # Comando para iniciar Uvicorn con FastAPI
18
  CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
 
 
1
  # Imagen base oficial de Python
2
  FROM python:3.10
3
 
4
+ # Instalar dependencias del sistema (libGL para OpenCV)
5
+ RUN apt-get update && apt-get install -y libgl1-mesa-glx
6
+
7
+ # Crear directorio de trabajo
8
  WORKDIR /code
9
 
10
+ # Instalar dependencias de Python
11
  COPY requirements.txt .
12
  RUN pip install --no-cache-dir -r requirements.txt
13
 
14
+ # Copiar la aplicaci贸n
15
  COPY app /code/app
16
 
17
+ # Exponer puerto requerido por Hugging Face
18
  EXPOSE 7860
19
 
20
+ # Comando para ejecutar Uvicorn
21
  CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]
22
+