Spaces:
No application file
No application file
Download pdf_bot.Dockerfile from jaothan/Docker-GenAI: direct link, hf CLI and curl.
- Browser
- Download file 507 Bytes
-
https://huggingface.co/spaces/jaothan/Docker-GenAI/resolve/main/pdf_bot.Dockerfile
- Command line
-
hf download hf://spaces/jaothan/Docker-GenAI/pdf_bot.Dockerfile
-
curl -L -o pdf_bot.Dockerfile https://huggingface.co/spaces/jaothan/Docker-GenAI/resolve/main/pdf_bot.Dockerfile
507 Bytes
| FROM langchain/langchain | |
| WORKDIR /app | |
| RUN apt-get update && apt-get install -y \ | |
| build-essential \ | |
| curl \ | |
| software-properties-common \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY requirements.txt . | |
| RUN pip install --upgrade -r requirements.txt | |
| COPY pdf_bot.py . | |
| COPY utils.py . | |
| COPY chains.py . | |
| EXPOSE 8503 | |
| HEALTHCHECK CMD curl --fail http://localhost:8503/_stcore/health | |
| ENTRYPOINT ["streamlit", "run", "pdf_bot.py", "--server.port=8503", "--server.address=0.0.0.0"] | |