From 04cb8865b0d1267d1cd3ff955420eb7a2f455a98 Mon Sep 17 00:00:00 2001 From: "James R. Barlow" Date: Sat, 6 Feb 2016 18:18:30 -0800 Subject: [PATCH] Fetch application from PyPI instead of local setuptools_scm barfs because it can't find the version, because Docker hub retrieves the application from Github in a way that omits the necessary details. I suppose there is a certain logic to Docker only using the tagged released versions from PyPI, so go with it. The other attractive option is to nix setuptools_scm. --- Dockerfile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3db7f8d3..9e7c12ee 100644 --- a/Dockerfile +++ b/Dockerfile @@ -41,13 +41,11 @@ RUN rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* /root/* RUN pyvenv /appenv \ && pyvenv --system-site-packages /appenv -COPY . /application/ - # Install application and dependencies # In this arrangement Pillow and reportlab will be provided by the system RUN . /appenv/bin/activate; \ pip install --upgrade pip \ - && pip install --no-cache-dir /application \ + && pip install ocrmypdf \ && pip install --no-cache-dir -r /application/test_requirements.txt USER docker