From 986222eff1a585668b04671fc3c3e5809b476604 Mon Sep 17 00:00:00 2001 From: yuenmichelle1 Date: Thu, 13 Oct 2022 23:50:37 -0500 Subject: [PATCH] update dockerfile, ensure numpy is installed MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ensure numpy is installed for libtiff package per errors: × python setup.py egg_info did not run successfully. #15 9.137 [pipenv.exceptions.InstallError]: │ exit code: 1 #15 9.137 [pipenv.exceptions.InstallError]: ╰─> [6 lines of output] #15 9.137 [pipenv.exceptions.InstallError]: Traceback (most recent call last): #15 9.137 [pipenv.exceptions.InstallError]: File "", line 36, in #15 9.137 [pipenv.exceptions.InstallError]: File "", line 34, in #15 9.137 [pipenv.exceptions.InstallError]: File "/tmp/pip-install-k048us7u/libtiff_5d9648a7d30d4df092ba425aadeb40c9/setup.py", line 77, in #15 9.138 [pipenv.exceptions.InstallError]: from numpy.distutils.core import setup, Extension #15 9.138 [pipenv.exceptions.InstallError]: ModuleNotFoundError: No module named 'numpy' --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index a4e81f2..33d212e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -31,6 +31,9 @@ RUN export GDAL_VERSION=$(gdal-config --version) \ && pip install --global-option=build_ext --global-option="-I/usr/include/gdal/" \ gdal~=${GDAL_VERSION} +# ensure numpy installation for libtiff install +RUN pip install numpy + RUN pipenv install --system --dev COPY . /usr/src/app