File size: 470 Bytes
f8a544f
 
8012183
 
 
 
994769c
8012183
 
994769c
8012183
 
994769c
8012183
 
f8a544f
8012183
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Usamos una imagen ligera de Python
FROM python:3.8-slim

# Establecer el directorio de trabajo
WORKDIR /app

# Copiar solo las dependencias de Python para aprovechar el cache
COPY requirements.txt ./

# Instalar las dependencias de Python
RUN pip install --no-cache-dir -r requirements.txt

# Copiar el código fuente del backend
COPY app.py ./

# Exponer el puerto de Streamlit (8501)
EXPOSE 8501

# Comando para ejecutar Streamlit
CMD ["streamlit", "run", "app.py"]