Spaces:
Sleeping
Sleeping
Download Dockerfile from arifme071/engineering-knowledge-rag: direct link, hf CLI and curl.
- Browser
- Download file 530 Bytes
-
https://huggingface.co/spaces/arifme071/engineering-knowledge-rag/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/arifme071/engineering-knowledge-rag/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/arifme071/engineering-knowledge-rag/resolve/main/Dockerfile
530 Bytes
| FROM python:3.10-slim | |
| WORKDIR /app | |
| RUN apt-get update && apt-get install -y \ | |
| build-essential \ | |
| libgomp1 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| RUN mkdir -p data/papers data/index | |
| EXPOSE 7860 | |
| ENV STREAMLIT_SERVER_PORT=7860 | |
| ENV STREAMLIT_SERVER_ADDRESS=0.0.0.0 | |
| ENV STREAMLIT_SERVER_HEADLESS=true | |
| CMD ["streamlit", "run", "app/main.py", \ | |
| "--server.port=7860", \ | |
| "--server.address=0.0.0.0", \ | |
| "--server.headless=true"] | |