GianmarcoJTA commited on
Commit
76556fd
·
verified ·
1 Parent(s): 0e7d0fb

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +14 -1
Dockerfile CHANGED
@@ -1,2 +1,15 @@
 
 
 
 
 
 
 
1
  COPY app.py /app/app.py
2
- CMD ["python", "app.py"]
 
 
 
 
 
 
 
1
+ # Usar una imagen base oficial de Python
2
+ FROM python:3.9-slim
3
+
4
+ # Establecer el directorio de trabajo
5
+ WORKDIR /app
6
+
7
+ # Copiar el archivo 'app.py' al contenedor
8
  COPY app.py /app/app.py
9
+
10
+ # Instalar dependencias
11
+ COPY requirements.txt /app/requirements.txt
12
+ RUN pip install --no-cache-dir -r requirements.txt
13
+
14
+ # Ejecutar el archivo 'app.py'
15
+ CMD ["python", "app.py"]