From 2e65903ebd4418ff420419b27eb93a410bdfab02 Mon Sep 17 00:00:00 2001 From: cccs-rs <62077998+cccs-rs@users.noreply.github.com> Date: Sun, 11 Feb 2024 03:48:18 +0000 Subject: [PATCH 1/2] Update for Bookworm --- Dockerfile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 39f59df..c0fc46b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,14 +25,12 @@ RUN apt-get update RUN mkdir -p /usr/share/man/man1mkdir -p /usr/share/man/man1 RUN apt-get install -y tesseract-ocr libemail-outlook-message-perl libgdiplus unzip -RUN wget https://github.com/wkhtmltopdf/packaging/releases/download/0.12.6-1/wkhtmltox_0.12.6-1.buster_amd64.deb -RUN apt-get install -y poppler-utils ./wkhtmltox_0.12.6-1.buster_amd64.deb --no-install-recommends &&\ - rm -f ./wkhtmltox_0.12.6-1.buster_amd64.deb +RUN apt-get install -y poppler-utils wkhtmltopdf RUN pip install Pillow==9.5.0 natsort imgkit compoundfiles compressed_rtf pytesseract # Install Chrome for headless rendering of HTML documents RUN wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb && \ - apt install -y ./google-chrome-stable_current_amd64.deb && rm -f ./google-chrome-stable_current_amd64.deb + apt install -o DPkg::Options::="--force-confnew" -y ./google-chrome-stable_current_amd64.deb && rm -f ./google-chrome-stable_current_amd64.deb # Switch to assemblyline user USER assemblyline From aec06c105c1b4f51630d8d89c79da8e9a49acedd Mon Sep 17 00:00:00 2001 From: cccs-rs <62077998+cccs-rs@users.noreply.github.com> Date: Fri, 16 Feb 2024 02:06:38 +0000 Subject: [PATCH 2/2] Update manifest --- service_manifest.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service_manifest.yml b/service_manifest.yml index 7debda1..1cc3a4d 100644 --- a/service_manifest.yml +++ b/service_manifest.yml @@ -74,4 +74,4 @@ heuristics: docker_config: image: ${REGISTRY}cccs/assemblyline-service-document-preview:$SERVICE_TAG cpu_cores: 1 - ram_mb: 1024 + ram_mb: 4096