-
Notifications
You must be signed in to change notification settings - Fork 6
/
Dockerfile
65 lines (57 loc) · 1.73 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
FROM ubuntu:18.04
SHELL ["/bin/bash", "-c"]
RUN apt-get update
RUN apt-get install -y software-properties-common
RUN add-apt-repository -y ppa:beineri/opt-qt-5.12.2-bionic
RUN apt-get update
RUN apt-get install -y --fix-missing \
qt512-meta-minimal \
qt512charts-no-lgpl \
libfontconfig1 \
git \
libboost-dev \
unzip \
mesa-common-dev \
libgl1-mesa-dev \
libglu1-mesa-dev \
freeglut3-dev \
mesa-utils \
wget \
g++ \
make \
build-essential \
zlib1g \
zlib1g-dev
RUN echo "source /opt/qt512/bin/qt512-env.sh" >> ~/.bashrc
RUN mkdir dsistudio
WORKDIR dsistudio
RUN git clone -b master https://github.com/frankyeh/DSI-Studio.git src
RUN wget https://github.com/frankyeh/TIPL/zipball/master
RUN unzip master
RUN mv frankyeh-TIPL-* src/tipl
RUN mkdir build
WORKDIR build
RUN strip --remove-section=.note.ABI-tag /opt/qt512/lib/libQt5Core.so.5
RUN source /opt/qt512/bin/qt512-env.sh && qmake ../src && make
WORKDIR ..
RUN wget https://www.dropbox.com/s/rq5khgmoyiye0op/dsi_studio_other_files.zip?dl=1 -O dsi_studio_other_files.zip
RUN unzip dsi_studio_other_files.zip -d dsi_studio_64
WORKDIR dsi_studio_64
RUN cp ../build/dsi_studio .
CMD ./dsi_studio
FROM ubuntu:18.04
COPY --from=0 /dsistudio/dsi_studio_64 /opt/dsistudio
RUN apt-get update -qq
RUN apt-get install -qq --no-install-recommends -y software-properties-common
RUN add-apt-repository -y ppa:beineri/opt-qt-5.12.2-bionic
RUN apt-get update -qq
RUN apt-get install -qq --fix-missing --no-install-recommends -y \
qt512-meta-minimal \
qt512charts-no-lgpl\
zlib1g \
libqt5opengl5 \
libglu1-mesa \
freeglut3
SHELL ["/bin/bash", "-c"]
RUN echo "source /opt/qt512/bin/qt512-env.sh" >> ~/.bashrc
CMD ["/opt/dsistudio/dsi_studio"]