Spaces:
Running
Running
Download Dockerfile from muddasser/Memory_Augmented_RAG: direct link, hf CLI and curl.
- Browser
- Download file 828 Bytes
-
https://huggingface.co/spaces/muddasser/Memory_Augmented_RAG/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/muddasser/Memory_Augmented_RAG/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/muddasser/Memory_Augmented_RAG/resolve/main/Dockerfile
828 Bytes
| FROM python:3.11-slim | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| libgomp1 \ | |
| tesseract-ocr \ | |
| tesseract-ocr-eng \ | |
| tesseract-ocr-ara \ | |
| && rm -rf /var/lib/apt/lists/* | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV HOME=/home/user \ | |
| PATH=/home/user/.local/bin:$PATH \ | |
| HF_HOME=/tmp/hf \ | |
| STREAMLIT_BROWSER_GATHER_USAGE_STATS=false | |
| WORKDIR $HOME/app | |
| RUN pip install --no-cache-dir --user torch --index-url https://download.pytorch.org/whl/cpu | |
| COPY --chown=user requirements.txt . | |
| RUN pip install --no-cache-dir --user -r requirements.txt | |
| COPY --chown=user app.py . | |
| COPY HR_policies.png ./ | |
| EXPOSE 7860 | |
| CMD ["streamlit", "run", "app.py", \ | |
| "--server.port=7860", \ | |
| "--server.address=0.0.0.0", \ | |
| "--server.enableXsrfProtection=false", \ | |
| "--server.enableCORS=false"] |