Spaces:
Sleeping
Sleeping
Download Dockerfile from HitendraKawale/rag-chunk-visualizer: direct link, hf CLI and curl.
- Browser
- Download file 636 Bytes
-
https://huggingface.co/spaces/HitendraKawale/rag-chunk-visualizer/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/HitendraKawale/rag-chunk-visualizer/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/HitendraKawale/rag-chunk-visualizer/resolve/main/Dockerfile
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"] | |