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.
This commit is contained in:
James R. Barlow
2016-02-17 15:14:23 -08:00
parent 3b98a1a04b
commit aa394440db

View File

@@ -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