Spaces:
Sleeping
Sleeping
| 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"] | |