Compare commits
3
Commits
v3.2.1
...
v3.2.post2
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7982f58b2e | ||
|
|
e805c1908a | ||
|
|
344fc40cbc |
+13
-7
@@ -10,20 +10,26 @@ RUN useradd docker \
|
|||||||
&& chown docker:docker /home/docker
|
&& chown docker:docker /home/docker
|
||||||
|
|
||||||
# Update system and install our dependencies
|
# Update system and install our dependencies
|
||||||
|
# If this command takes too Docker hub's automated build will timeout,
|
||||||
|
# so try it in portions
|
||||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||||
locales \
|
locales \
|
||||||
ghostscript \
|
|
||||||
tesseract-ocr \
|
|
||||||
tesseract-ocr-deu tesseract-ocr-spa tesseract-ocr-eng tesseract-ocr-fra \
|
|
||||||
qpdf \
|
|
||||||
poppler-utils \
|
|
||||||
python3 \
|
python3 \
|
||||||
python3-pip \
|
python3-pip \
|
||||||
python3-venv \
|
python3-venv \
|
||||||
python3-reportlab \
|
python3-reportlab \
|
||||||
python3-pil \
|
python3-pil \
|
||||||
python3-wheel \
|
python3-wheel
|
||||||
unpaper
|
|
||||||
|
RUN apt-get install -y --no-install-recommends \
|
||||||
|
unpaper \
|
||||||
|
ghostscript \
|
||||||
|
qpdf \
|
||||||
|
poppler-utils
|
||||||
|
|
||||||
|
RUN apt-get install -y --no-install-recommends \
|
||||||
|
tesseract-ocr \
|
||||||
|
tesseract-ocr-deu tesseract-ocr-spa tesseract-ocr-eng tesseract-ocr-fra
|
||||||
|
|
||||||
# Enforce UTF-8
|
# Enforce UTF-8
|
||||||
# Borrowed from https://index.docker.io/u/crosbymichael/python/
|
# Borrowed from https://index.docker.io/u/crosbymichael/python/
|
||||||
|
|||||||
@@ -5,9 +5,12 @@ FROM jbarlow83/ocrmypdf:latest
|
|||||||
MAINTAINER James R. Barlow <jim@purplerock.ca>
|
MAINTAINER James R. Barlow <jim@purplerock.ca>
|
||||||
|
|
||||||
# Update system and install our dependencies
|
# Update system and install our dependencies
|
||||||
|
USER root
|
||||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||||
tesseract-ocr-all
|
tesseract-ocr-all
|
||||||
|
|
||||||
|
USER docker
|
||||||
|
|
||||||
# Must use array form of ENTRYPOINT
|
# Must use array form of ENTRYPOINT
|
||||||
# Non-array form does not append other arguments, because that is "intuitive"
|
# Non-array form does not append other arguments, because that is "intuitive"
|
||||||
ENTRYPOINT ["/application/docker-wrapper.sh"]
|
ENTRYPOINT ["/application/docker-wrapper.sh"]
|
||||||
Reference in New Issue
Block a user