doc-redactor / dockerfile
HarshitaSuri's picture
Update dockerfile
27dcc0b verified
raw
history blame contribute delete
492 Bytes
FROM python:3.10-slim
# Set noninteractive frontend to avoid prompts
ENV DEBIAN_FRONTEND=noninteractive
# Install system-level packages
RUN apt-get update && apt-get install -y --no-install-recommends \
tesseract-ocr \
poppler-utils \
libglib2.0-0 \
libsm6 \
libxext6 \
libxrender-dev \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY app.py .
EXPOSE 7860
CMD ["python", "app.py"]