From 28476568f71e9e219541fdb0bc992ef400c98d4e Mon Sep 17 00:00:00 2001 From: Robert Sachunsky Date: Fri, 2 Aug 2024 14:20:37 +0200 Subject: [PATCH] dockerfile: build Tesseract in parallel --- Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 4ad6584..762ec43 100644 --- a/Dockerfile +++ b/Dockerfile @@ -43,7 +43,10 @@ COPY ocrd_tesserocr . COPY repo/tesserocr repo/tesserocr COPY repo/tesseract repo/tesseract COPY Makefile . -RUN make deps-ubuntu deps install install-tesseract-training \ +RUN make deps-ubuntu \ + && make -j4 install-tesseract \ + && make -j4 install-tesseract-training \ + && make deps install \ && rm -rf /build/ocrd_tesserocr \ && apt-get -y remove --auto-remove g++ libtesseract-dev make