rag-chunk-visualizer / Dockerfile
HitendraKawale's picture
Deploy RAG Chunk Visualizer with multi-provider LLM support
1c223a0 verified
Raw History Blame Contribute Delete
636 Bytes
# Container for Hugging Face Spaces (Docker SDK) and any other host.
FROM python:3.11-slim
# Spaces runs containers as a non-root user with uid 1000.
RUN useradd -m -u 1000 user
USER user
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH \
STREAMLIT_BROWSER_GATHER_USAGE_STATS=false
WORKDIR /home/user/app
COPY --chown=user . .
# Editable install keeps the project root (and its data/ dir) at /home/user/app.
RUN pip install --no-cache-dir --upgrade pip \
&& pip install --no-cache-dir -r requirements.txt
EXPOSE 8501
CMD ["streamlit", "run", "streamlit_app.py", "--server.port=8501", "--server.address=0.0.0.0"]