Spaces:
Sleeping
Sleeping
Download Dockerfile from errantanomie/PDFDocker: direct link, hf CLI and curl.
- Browser
- Download file 570 Bytes
-
https://huggingface.co/spaces/errantanomie/PDFDocker/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/errantanomie/PDFDocker/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/errantanomie/PDFDocker/resolve/main/Dockerfile
570 Bytes
| FROM python:3.10 | |
| # Install Poppler | |
| RUN apt-get update && apt-get install -y poppler-utils | |
| # Verify Poppler installation and show exact path of pdfinfo | |
| RUN which pdfinfo && /usr/bin/pdfinfo -v | |
| # Ensure Poppler is in PATH | |
| ENV PATH="/usr/local/bin:/usr/bin:${PATH}" | |
| # Set working directory | |
| WORKDIR /app | |
| # Install dependencies | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy application code | |
| COPY . /app | |
| # Expose the port | |
| EXPOSE 7860 | |
| # Run the app | |
| CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"] |