-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
73 lines (57 loc) · 1.91 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
FROM ubuntu:noble
### update
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get -q update
RUN apt-get -q -y upgrade
RUN apt-get -q -y install g++ git cmake meson pkg-config equivs sed wget zip unzip
RUN apt-get -q -y install zlib1g-dev libpng-dev libjpeg-dev libtiff5-dev libgdk-pixbuf2.0-dev libxml2-dev libsqlite3-dev libcairo2-dev libglib2.0-dev
RUN mkdir /root/src
RUN mkdir /root/src/image-decoders
WORKDIR /root/src/image-decoders
### JDK
ARG TARGETARCH
RUN if [ "$TARGETARCH" = arm64 ]; then \
echo aarch64 >> /platformid; \
else \
echo x64 >> /platformid; \
fi
COPY install_jdk.sh .
RUN chmod a+x install_jdk.sh
RUN ./install_jdk.sh
ENV JAVA_HOME=/java_home
ENV PATH="/java_home/bin:$PATH"
### BioFormats
RUN mkdir -p /usr/lib/java
ENV BFBRIDGE_CLASSPATH=/usr/lib/java
ENV CLASSPATH=/usr/lib/java
ENV BFBRIDGE_CACHEDIR=/tmp/
WORKDIR /root/src/image-decoders
COPY install_bioformats.sh .
RUN chmod a+x install_bioformats.sh
RUN ./install_bioformats.sh
# Want BFBridge/ at /root/src/
WORKDIR /root/src
COPY install_bfbridge.sh .
RUN chmod a+x install_bfbridge.sh
RUN ./install_bfbridge.sh
### bring the remaining files
## (previous ones needed extra caching due to their size)
COPY . /root/src/image-decoders
### openjpeg version in ubuntu 14.04 is 1.3, too old and does not have openslide required chroma subsampled images support. download 2.5.0 from source and build
WORKDIR /root/src/image-decoders
RUN chmod a+x install_openjpeg.sh
RUN ./install_openjpeg.sh
### OpenSlide
# RUN apt-get -qy install libopenslide-dev
# alternative
WORKDIR /root/src/image-decoders
RUN chmod a+x install_openslide.sh
RUN ./install_openslide.sh
ENV LD_LIBRARY_PATH=/usr/local/lib
# temporary fix bc it's looking for .so.0 but has .so.1
RUN bash openslide_symlink.sh
## Install dummy apt packages against competitor versions being installed
WORKDIR /root/src/image-decoders
RUN chmod a+x register_openslide_apt.sh
RUN ./register_openslide_apt.sh
WORKDIR /