-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (23 loc) · 924 Bytes
/
Dockerfile
File metadata and controls
30 lines (23 loc) · 924 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# Core image: report_analyst Streamlit app (RPL only, no enterprise deps)
FROM python:3.12-slim
WORKDIR /app
# System deps: PyMuPDF (poppler), chroma-hnswlib (build), sqlite-vss (build from source on ARM), healthcheck (curl)
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
cmake \
libpoppler-cpp-dev \
libsqlite3-dev \
pkg-config \
curl \
&& rm -rf /var/lib/apt/lists/*
# Python dependencies (core only)
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Application code
COPY report_analyst/ report_analyst/
COPY prompts/ prompts/
COPY .streamlit/ .streamlit/
EXPOSE 8080
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
CMD curl -f http://localhost:8080/_stcore/health || exit 1
ENTRYPOINT ["streamlit", "run", "report_analyst/streamlit_app.py", "--server.port=8080", "--server.address=0.0.0.0"]