File size: 451 Bytes
ecfd521
9a53d59
ecfd521
9a53d59
 
 
 
 
 
272f010
 
ecfd521
9a53d59
 
 
272f010
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
FROM python:3.9-slim

WORKDIR /app

# Necesitamos git para los subprocess.run(["git", ...]) que configuran autores
RUN apt-get update && apt-get install -y git \
 && rm -rf /var/lib/apt/lists/*

# Redirigimos HOME para que Streamlit pueda escribir su config
ENV HOME=/tmp

COPY . .

RUN pip install --upgrade pip \
 && pip install --no-cache-dir -r requirements.txt

CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]