| |
| FROM python:3.13-slim |
|
|
| |
| ENV DEBIAN_FRONTEND=noninteractive |
|
|
| |
| RUN apt-get update && \ |
| apt-get install -y --no-install-recommends \ |
| texlive-latex-base \ |
| texlive-latex-recommended \ |
| texlive-latex-extra \ |
| texlive-fonts-recommended \ |
| texlive-fonts-extra \ |
| texlive-xetex \ |
| texlive-science \ |
| texlive-publishers \ |
| texlive-plain-generic \ |
| fonts-freefont-ttf \ |
| fonts-dejavu \ |
| fonts-noto \ |
| fonts-liberation \ |
| fonts-inconsolata \ |
| fonts-texgyre \ |
| build-essential \ |
| git \ |
| curl \ |
| ca-certificates && \ |
| apt-get clean && \ |
| rm -rf /var/lib/apt/lists/* |
|
|
| |
| RUN useradd -m -u 1000 user |
|
|
| |
| USER user |
|
|
| |
| ENV HOME=/home/user \ |
| PATH=/home/user/.local/bin:$PATH |
|
|
| |
| WORKDIR $HOME/app |
|
|
| |
| |
| |
| COPY --chown=user . $HOME/app |
|
|
| RUN pip uninstall -y langgraph || true |
|
|
| |
| RUN git clone https://github.com/AstroPilot-AI/DenarioApp.git |
|
|
| RUN pip install DenarioApp/. |
|
|
| |
| EXPOSE 7860 |
|
|
| |
| RUN touch .env |
|
|
| |
| HEALTHCHECK CMD curl --fail http://localhost:$PORT/_stcore/health |
|
|
| CMD ["streamlit", "run", "DenarioApp/src/denario_app/app.py", "--server.port=7860", "--server.address=0.0.0.0", "--", "--deploy"] |
|
|