Spaces:
Sleeping
Sleeping
| 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"] |