# Use your existing Tesseract image as the base
FROM franky1/tesseract:latest

# Install libvips and mutool on top of it
RUN apt-get update && apt-get install -y --no-install-recommends \
    libvips-tools \
    mupdf-tools \
    && rm -rf /var/lib/apt/lists/*

# Optional: set a sensible default workdir
WORKDIR /tmp

# Default command: keep tesseract as entrypoint to preserve behavior
CMD ["tesseract", "--version"]
