From aa394440dbdb9e55fc64f32dc0ba07333c69a595 Mon Sep 17 00:00:00 2001 From: "James R. Barlow" Date: Wed, 17 Feb 2016 15:14:23 -0800 Subject: [PATCH] Just use the PyPI version of ocrmypdf in dockerfile Apparently setuptools_scm_git_archive is ineffective on hub.docker.com automatic build, it still can't find a version. --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 59a12bd5..899c5317 100644 --- a/Dockerfile +++ b/Dockerfile @@ -63,9 +63,11 @@ RUN chmod 644 /usr/share/tesseract-ocr/tessdata/pdf.ttf # Install application and dependencies # In this arrangement Pillow and reportlab will be provided by the system +# Even though ocrmypdf is locally present, pull from PyPI because +# Dockerhub and setuptools_scm clash RUN . /appenv/bin/activate; \ pip install --upgrade pip \ - && pip install /application \ + && pip install ocrmypdf \ && pip install --no-cache-dir -r /application/test_requirements.txt # Remove the junk