agentic-rag-policy-assistant/Dockerfile
Daniel Plank d2a6800836 Containerize with Docker Compose
Fix numpy pin for Python 3.11: the originally pinned numpy==2.5.4 requires
Python >=3.12, which is incompatible with the python:3.11-slim base image.

Refs #9
2026-11-07 16:26:16 +01:00

22 lines
629 B
Docker

FROM python:3.11-slim
WORKDIR /app
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
HF_HUB_DISABLE_SYMLINKS_WARNING=1
# Install CPU-only torch first (sentence-transformers' default install otherwise pulls the
# much larger CUDA-enabled build, which is unnecessary for this CPU-only prototype).
RUN pip install --no-cache-dir torch --index-url https://download.pytorch.org/whl/cpu
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY app/ app/
COPY ui/ ui/
COPY eval/ eval/
EXPOSE 8501
CMD ["streamlit", "run", "ui/streamlit_app.py", "--server.address=0.0.0.0", "--server.port=8501"]