JAMC980-UNAH commited on
Commit
78ea12a
路
verified 路
1 Parent(s): 3d39505

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +32 -0
Dockerfile ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11
2
+
3
+ # Establece el directorio de trabajo
4
+ WORKDIR /app
5
+
6
+ # Copia los archivos del proyecto
7
+ COPY . /app
8
+
9
+ # Instala dependencias del sistema
10
+ ENV DEBIAN_FRONTEND=noninteractive
11
+ RUN apt-get update && apt-get install -y \
12
+ git \
13
+ git-lfs \
14
+ ffmpeg \
15
+ libsm6 \
16
+ libxext6 \
17
+ cmake \
18
+ rsync \
19
+ libgl1 \
20
+ libglx-mesa0 \
21
+ && rm -rf /var/lib/apt/lists/* \
22
+ && git lfs install
23
+
24
+ # Instala dependencias de Python
25
+ COPY requirements.txt .
26
+ RUN pip install --no-cache-dir -r requirements.txt
27
+
28
+ # Expone el puerto (para Gradio)
29
+ EXPOSE 7860
30
+
31
+ # Comando para ejecutar la aplicaci贸n
32
+ CMD ["python", "app.py"]