mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-07 15:25:41 +01:00
Fix issue where tesseract langages weren't installed properly
This commit is contained in:
parent
a511d34d69
commit
9dd76f1b87
1 changed files with 4 additions and 5 deletions
|
|
@ -1,4 +1,4 @@
|
||||||
FROM alpine:3.7
|
FROM alpine:3.8
|
||||||
|
|
||||||
LABEL maintainer="The Paperless Project https://github.com/danielquinn/paperless" \
|
LABEL maintainer="The Paperless Project https://github.com/danielquinn/paperless" \
|
||||||
contributors="Guy Addadi <addadi@gmail.com>, Pit Kleyersburg <pitkley@googlemail.com>, \
|
contributors="Guy Addadi <addadi@gmail.com>, Pit Kleyersburg <pitkley@googlemail.com>, \
|
||||||
|
|
@ -12,11 +12,10 @@ COPY scripts/docker-entrypoint.sh /sbin/docker-entrypoint.sh
|
||||||
ENV PAPERLESS_EXPORT_DIR=/export \
|
ENV PAPERLESS_EXPORT_DIR=/export \
|
||||||
PAPERLESS_CONSUMPTION_DIR=/consume
|
PAPERLESS_CONSUMPTION_DIR=/consume
|
||||||
|
|
||||||
# Install dependencies
|
|
||||||
RUN apk --no-cache --update add \
|
RUN apk update --no-cache && apk add python3 gnupg libmagic bash shadow curl \
|
||||||
python3 gnupg libmagic bash shadow curl \
|
|
||||||
sudo poppler tesseract-ocr imagemagick ghostscript unpaper && \
|
sudo poppler tesseract-ocr imagemagick ghostscript unpaper && \
|
||||||
apk --no-cache add --virtual .build-dependencies \
|
apk add --virtual .build-dependencies \
|
||||||
python3-dev poppler-dev gcc g++ musl-dev zlib-dev jpeg-dev && \
|
python3-dev poppler-dev gcc g++ musl-dev zlib-dev jpeg-dev && \
|
||||||
# Install python dependencies
|
# Install python dependencies
|
||||||
python3 -m ensurepip && \
|
python3 -m ensurepip && \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue