Spaces:
Running
Running
File size: 462 Bytes
969a8a9 433f34d 969a8a9 73c003b 969a8a9 73c003b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | FROM python:3.11-slim
# Install poppler-utils (required by pdf2image for PDF → PNG conversion)
RUN apt-get update && apt-get install -y --no-install-recommends \
poppler-utils \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy app files
COPY app.py .
COPY index.html .
# HF Spaces expects the app on port 7860
EXPOSE 7860
CMD ["python", "app.py"] |