ai_data_extraction / Dockerfile
PPN1's picture
Update Dockerfile
337addd verified
Raw
History Blame
363 Bytes
FROM python:3.10-slim
# Install system deps (poppler for pdf2image + ttf for PIL)
RUN apt-get update \
&& apt-get install -y --no-install-recommends poppler-utils \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]