FROM amd64/nextcloud:24.0.5-fpm
RUN apt-get update && apt-get install -y libmagickcore-6.q16-6-extra tesseract-ocr && apt-get clean autoclean && apt-get autoremove -y
ADD https://raw.githubusercontent.com/tesseract-ocr/tessdata/main/deu.traineddata /usr/share/tesseract-ocr/tessdata/
ADD https://raw.githubusercontent.com/tesseract-ocr/tessdata/main/eng.traineddata /usr/share/tesseract-ocr/tessdata/