File tree 2 files changed +17
-1
lines changed
2 files changed +17
-1
lines changed Original file line number Diff line number Diff line change 1
- FROM camicroscope/image-decoders:latest
1
+ FROM camicroscope/image-decoders:1
2
2
3
3
WORKDIR /var/www
4
4
RUN apt-get update
@@ -30,6 +30,9 @@ ENV BFBRIDGE_LOGLEVEL=WARN
30
30
31
31
RUN mkdir -p /images/uploading
32
32
33
+ COPY openslide_copy.sh .
34
+ RUN bash openslide_copy.sh
35
+
33
36
COPY requirements.txt .
34
37
RUN pip3 install -r requirements.txt --break-system-packages
35
38
Original file line number Diff line number Diff line change
1
+ lib_path=$( find /usr/local/lib/ -name ' libopenslide.so.1' -print -quit)
2
+
3
+ # Check if libopenslide.so.1 is found
4
+ if [ -n " $lib_path " ]; then
5
+ # Navigate to the directory containing libopenslide.so.1
6
+ cd " $( dirname " $lib_path " ) "
7
+
8
+ # copy from libopenslide.so.1 to libopenslide.so.0, and /usr/local/lib directly
9
+ cp libopenslide.so.1 libopenslide.so.0 || true
10
+ cp libopenslide.so.1 /usr/local/lib/libopenslide.so.0 || true
11
+ else
12
+ echo " libopenslide.so.1 not found in /usr/local/lib/"
13
+ fi
You can’t perform that action at this time.
0 commit comments