Spaces:
Runtime error
Runtime error
Download Dockerfile from vengen9840/PaperLens: direct link, hf CLI and curl.
- Browser
- Download file 760 Bytes
-
https://huggingface.co/spaces/vengen9840/PaperLens/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/vengen9840/PaperLens/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/vengen9840/PaperLens/resolve/main/Dockerfile
760 Bytes
| FROM python:3.11-slim | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| build-essential libgomp1 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| WORKDIR /app | |
| COPY requirements-space.txt . | |
| RUN pip install --no-cache-dir -r requirements-space.txt | |
| RUN python3 -c "from sentence_transformers import SentenceTransformer; SentenceTransformer('all-MiniLM-L6-v2')" | |
| COPY download_data.py . | |
| RUN python3 download_data.py | |
| COPY src/ ./src/ | |
| EXPOSE 7860 | |
| CMD ["streamlit", "run", "src/dashboard/app_standalone.py", \ | |
| "--server.port=7860", \ | |
| "--server.address=0.0.0.0", \ | |
| "--server.headless=true", \ | |
| "--server.enableCORS=false", \ | |
| "--server.enableXsrfProtection=false", \ | |
| "--browser.gatherUsageStats=false", \ | |
| "--theme.base=light"] |