Spaces:
Runtime error
Runtime error
Download Dockerfile from Manasa1/Chat_with_pdf: direct link, hf CLI and curl.
- Browser
- Download file 619 Bytes
-
https://huggingface.co/spaces/Manasa1/Chat_with_pdf/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Manasa1/Chat_with_pdf/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Manasa1/Chat_with_pdf/resolve/main/Dockerfile
619 Bytes
| # Use the official Python image from the Docker Hub | |
| FROM python:3.11-slim-buster | |
| # Install system dependencies | |
| RUN apt-get update && \ | |
| apt-get install -y --no-install-recommends \ | |
| poppler-utils \ | |
| && rm -rf /var/lib/apt/lists/* \ | |
| || { echo "Package installation failed. Retrying in 3 seconds..."; sleep 3; apt-get update && apt-get install -y poppler-utils; } | |
| RUN apt-get update && apt-get install -y libgl1-mesa-glx | |
| COPY . /app | |
| WORKDIR /app | |
| # Install the requirements from the requirements.txt | |
| RUN pip install -r requirements.txt | |
| # Start the Streamlit app | |
| CMD ["streamlit", "run", "app.py"] | |