Spaces:
Sleeping
Sleeping
Download Dockerfile from Aayan873/MultiModal_RAG: direct link, hf CLI and curl.
- Browser
- Download file 1.12 kB
-
https://huggingface.co/spaces/Aayan873/MultiModal_RAG/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Aayan873/MultiModal_RAG/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Aayan873/MultiModal_RAG/resolve/main/Dockerfile
1.12 kB
| FROM python:3.10-slim | |
| WORKDIR /app | |
| # Writable caches for HF/torch | |
| RUN mkdir -p /tmp/hf /tmp/torch && chmod -R 777 /tmp/hf /tmp/torch | |
| # Point all caches to /tmp | |
| ENV HF_HOME=/tmp/hf \ | |
| TRANSFORMERS_CACHE=/tmp/hf \ | |
| HUGGINGFACE_HUB_CACHE=/tmp/hf \ | |
| HF_DATASETS_CACHE=/tmp/hf \ | |
| SENTENCE_TRANSFORMERS_HOME=/tmp/hf \ | |
| XDG_CACHE_HOME=/tmp \ | |
| TORCH_HOME=/tmp/torch \ | |
| TOKENIZERS_PARALLELISM=false | |
| ENV PYTHONUNBUFFERED=1 | |
| # System deps (Trixie-safe) | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| ffmpeg \ | |
| libgl1 \ | |
| libglx-mesa0 \ | |
| libsm6 \ | |
| libxext6 \ | |
| libxrender-dev \ | |
| libglib2.0-0 \ | |
| git \ | |
| curl \ | |
| build-essential \ | |
| libopenblas-dev \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY requirements.txt /app/requirements.txt | |
| RUN python -m pip install --upgrade pip setuptools wheel && \ | |
| pip install --no-cache-dir -r requirements.txt | |
| COPY . /app | |
| EXPOSE 7860 | |
| HEALTHCHECK CMD curl --fail http://localhost:7860/_stcore/health || exit 1 | |
| CMD ["streamlit","run","app.py","--server.port=7860","--server.address=0.0.0.0","--browser.gatherUsageStats=false"] | |