File size: 1,082 Bytes
e9291d3
f16d0f1
 
e9291d3
 
 
 
 
f75e371
e9291d3
 
 
f75e371
e9291d3
f75e371
 
e9291d3
 
 
 
 
f75e371
e9291d3
f75e371
 
e9291d3
7be04cb
f75e371
 
dad49da
e9291d3
 
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
31
32
# ── Dockerfile ─────────────────────────────────────────────────────────
FROM python:3.10-slim

# Set environment
ENV PYTHONUNBUFFERED=1 \
    STREAMLIT_DATA_DIR=/tmp/.streamlit \
    XDG_STATE_HOME=/tmp \
    STREAMLIT_BROWSER_GATHERUSAGESTATS=false

# OS deps
RUN apt-get update && apt-get install -y --no-install-recommends \
    build-essential curl && rm -rf /var/lib/apt/lists/*

# Pin numpy to avoid C-extension mismatches
RUN pip install --no-cache-dir numpy==1.23.5

# Install core Python libs + ML/embeddings
RUN pip install --no-cache-dir \
    spacy==3.5.2 transformers huggingface-hub scikit-learn httpx pandas plotly \
    fpdf streamlit streamlit-agraph networkx xmltodict feedparser pydantic openai \
    google-generative-ai

# Download spaCy model
RUN python -m spacy download en_core_web_sm

# Set workdir
WORKDIR /app
COPY . /app
EXPOSE 8501

# Entrypoint
ENTRYPOINT ["streamlit","run","app.py","--server.address=0.0.0.0","--server.port=8501"]