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"]