Compare commits

...
3 Commits
2 changed files with 16 additions and 7 deletions
+13 -7
View File
@@ -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/
+3
View File
@@ -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"]