mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-04-09 09:58:20 -05:00
reorganized the Dockerfile
This commit is contained in:
parent
a9d6e7f402
commit
ee31249d65
14
Dockerfile
14
Dockerfile
@ -17,28 +17,31 @@ COPY requirements.txt ./
|
|||||||
# Binary dependencies
|
# Binary dependencies
|
||||||
RUN apt-get update \
|
RUN apt-get update \
|
||||||
&& apt-get -y --no-install-recommends install \
|
&& apt-get -y --no-install-recommends install \
|
||||||
|
# Basic dependencies
|
||||||
curl \
|
curl \
|
||||||
file \
|
file \
|
||||||
fonts-liberation \
|
fonts-liberation \
|
||||||
gettext \
|
gettext \
|
||||||
ghostscript \
|
|
||||||
gnupg \
|
gnupg \
|
||||||
icc-profiles-free \
|
|
||||||
imagemagick \
|
imagemagick \
|
||||||
liblept5 \
|
|
||||||
libxslt1-dev \
|
libxslt1-dev \
|
||||||
mime-support \
|
mime-support \
|
||||||
optipng \
|
optipng \
|
||||||
|
sudo \
|
||||||
|
tzdata \
|
||||||
|
# OCRmyPDF dependencies
|
||||||
|
ghostscript \
|
||||||
|
icc-profiles-free \
|
||||||
|
liblept5 \
|
||||||
|
libxml2 \
|
||||||
pngquant \
|
pngquant \
|
||||||
qpdf \
|
qpdf \
|
||||||
sudo \
|
|
||||||
tesseract-ocr \
|
tesseract-ocr \
|
||||||
tesseract-ocr-eng \
|
tesseract-ocr-eng \
|
||||||
tesseract-ocr-deu \
|
tesseract-ocr-deu \
|
||||||
tesseract-ocr-fra \
|
tesseract-ocr-fra \
|
||||||
tesseract-ocr-ita \
|
tesseract-ocr-ita \
|
||||||
tesseract-ocr-spa \
|
tesseract-ocr-spa \
|
||||||
tzdata \
|
|
||||||
unpaper \
|
unpaper \
|
||||||
zlib1g \
|
zlib1g \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
@ -52,7 +55,6 @@ RUN apt-get update \
|
|||||||
libpoppler-cpp-dev \
|
libpoppler-cpp-dev \
|
||||||
libpq-dev \
|
libpq-dev \
|
||||||
libqpdf-dev \
|
libqpdf-dev \
|
||||||
libxml2 \
|
|
||||||
&& python3 -m pip install --upgrade --no-cache-dir supervisor \
|
&& python3 -m pip install --upgrade --no-cache-dir supervisor \
|
||||||
&& python3 -m pip install --no-cache-dir -r requirements.txt \
|
&& python3 -m pip install --no-cache-dir -r requirements.txt \
|
||||||
&& apt-get -y purge build-essential libqpdf-dev \
|
&& apt-get -y purge build-essential libqpdf-dev \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user