File size: 912 Bytes
f16d0f1 f75e371 7be04cb 2321094 f75e371 2321094 f75e371 b30b2b5 f75e371 b30b2b5 f75e371 dad49da f75e371 f797a9e f75e371 b493000 |
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 33 34 35 36 37 38 39 |
FROM python:3.10-slim
Set environment variables
ENV PYTHONUNBUFFERED=1 STREAMLIT_DATA_DIR=/tmp/.streamlit XDG_STATE_HOME=/tmp STREAMLIT_BROWSER_GATHERUSAGESTATS=false
Install OS-level dependencies
RUN apt-get update && apt-get install -y --no-install-recommends build-essential curl && rm -rf /var/lib/apt/lists/*
Pin numpy to avoid binary incompatibility issues
RUN pip install --no-cache-dir numpy==1.23.5
Install Python dependencies
RUN pip install --no-cache-dir spacy==3.5.2 httpx pandas plotly fpdf streamlit streamlit-agraph networkx xmltodict feedparser pydantic openai google-generative-ai
Download the spaCy small English model
RUN python -m spacy download en_core_web_sm
Set working directory
WORKDIR /app
Copy application code
COPY . /app
Expose Streamlit port
EXPOSE 8501
Default command
ENTRYPOINT ["streamlit", "run", "app.py", "--server.address=0.0.0.0", "--server.port=8501"]
|