From 53058a6f926709974bc79f6e45629f0e21c03eaa Mon Sep 17 00:00:00 2001 From: Jeremy Muhlich Date: Sun, 21 Jul 2024 22:40:24 -0400 Subject: [PATCH] Set scikit-image minimum version to 0.21.0 This avoids the problem introduced in 0.20.0 where the sample datasets are downloaded to a cache directory upon import of the top-level module. This causes an error when the container is being run as the calling user rather than root as the default cache directory is not writable. It is also a waste of time and network bandwidth as the datasets will never be used here. --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index c2f86a2..5195445 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,7 +12,7 @@ ENV PATH=/opt/conda/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin: # Installing necessary packages # Installing basicpy and other pip packages -RUN pip --no-cache-dir install basicpy==1.2.0 bioformats_jar +RUN pip --no-cache-dir install basicpy==1.2.0 bioformats_jar 'scikit-image>=0.21.0' # Pre-fetch bioformats jars to a world-readable location. # Force TLS 1.2 to work around a Java bug in the JDK version in this container.