From 5fce21e26908fe993dc1bd1872f0b9fb4e7f6dd2 Mon Sep 17 00:00:00 2001 From: Trenton Holmes <797416+stumpylog@users.noreply.github.com> Date: Sat, 9 Sep 2023 16:08:00 -0700 Subject: [PATCH] Trims libraries which are baked into the wheels we use, no need for them on the system --- Dockerfile | 21 +++------------------ 1 file changed, 3 insertions(+), 18 deletions(-) diff --git a/Dockerfile b/Dockerfile index 59f190ade..943567864 100644 --- a/Dockerfile +++ b/Dockerfile @@ -67,23 +67,11 @@ ARG RUNTIME_PACKAGES="\ gnupg \ icc-profiles-free \ imagemagick \ - # Image processing - liblept5 \ - liblcms2-2 \ - libtiff6 \ - libfreetype6 \ - libwebp7 \ - libopenjp2-7 \ - libimagequant0 \ - libraqm0 \ - libjpeg62-turbo \ # PostgreSQL libpq5 \ postgresql-client \ # MySQL / MariaDB mariadb-client \ - # For Numpy - libatlas3-base \ # OCRmyPDF dependencies tesseract-ocr \ tesseract-ocr-eng \ @@ -93,12 +81,11 @@ ARG RUNTIME_PACKAGES="\ tesseract-ocr-spa \ unpaper \ pngquant \ - # pikepdf / qpdf jbig2dec \ + # lxml libxml2 \ libxslt1.1 \ - libgnutls30 \ - libqpdf29 \ + # itself qpdf \ # Mime type detection file \ @@ -107,9 +94,7 @@ ARG RUNTIME_PACKAGES="\ zlib1g \ # Barcode splitter libzbar0 \ - poppler-utils \ - # RapidFuzz on armv7 - libatomic1" + poppler-utils" # Install basic runtime packages. # These change very infrequently