flyer-image-to-text / Dockerfile
Lazabriellholland's picture
Create Dockerfile
77422b6 verified
raw
history blame
503 Bytes
FROM python:3.11-slim
# System packages needed for OCR & PDF rendering
RUN apt-get update && \
apt-get install -y --no-install-recommends \
tesseract-ocr \
poppler-utils \
libgl1 \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
# Hugging Face Spaces expects apps on port 7860
ENV PORT=7860
EXPOSE 7860
CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]