File size: 580 Bytes
d6c644a
09f1ce5
 
d6c644a
 
 
09f1ce5
d6c644a
 
09f1ce5
d6c644a
 
09f1ce5
d6c644a
 
09f1ce5
d6c644a
 
 
09f1ce5
d6c644a
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM python:3.10-slim
WORKDIR /app

# instalar git-lfs y traer los punteros
RUN apt-get update && apt-get install -y git-lfs && \
    git lfs install

# copia todo el repo (incluye los punteros LFS)
COPY . /app

# fuerza el pull de los objetos LFS reales
RUN git lfs pull

# instala deps
RUN pip install -r requirements.txt

# en tiempo de ejecución Streamlit creará su /root/.streamlit
# así que por seguridad redirige al directorio de la app
ENV STREAMLIT_CONFIG_HOME=/app/.streamlit

EXPOSE 8501
ENTRYPOINT ["streamlit", "run", "src/streamlit_app.py", "--server.port=8501"]