From 4863a8e521eca0fbf8df7cee16fdaadde8609c23 Mon Sep 17 00:00:00 2001 From: "James R. Barlow" Date: Thu, 15 Jul 2021 23:33:12 -0700 Subject: [PATCH] docker: make base install packages in common --- .docker/Dockerfile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.docker/Dockerfile b/.docker/Dockerfile index 5fda63ea..416a4af0 100644 --- a/.docker/Dockerfile +++ b/.docker/Dockerfile @@ -7,6 +7,12 @@ ENV LANG=C.UTF-8 ENV TZ=UTC RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections +RUN apt-get update && apt-get install -y --no-install-recommends \ + python3 \ + libqpdf-dev \ + zlib1g \ + liblept5 + FROM base as builder RUN apt-get update && apt-get install -y --no-install-recommends \ @@ -16,7 +22,6 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ python3-dev \ python3-distutils \ libffi-dev \ - libqpdf-dev \ ca-certificates \ curl \ git @@ -47,12 +52,8 @@ FROM base RUN apt-get update && apt-get install -y --no-install-recommends \ ghostscript \ img2pdf \ - liblept5 \ libsm6 libxext6 libxrender-dev \ - zlib1g \ pngquant \ - python3 \ - qpdf \ tesseract-ocr \ tesseract-ocr-chi-sim \ tesseract-ocr-deu \