forked from CBICA/CaPTk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
49 lines (40 loc) · 1.3 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
FROM ubuntu:16.04
MAINTAINER CBICA_UPenn [email protected]
#update
RUN apt-get update && \
apt-get install -y sudo curl git && \
curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash && \
sudo apt-get install git-lfs
#general dependencies
RUN apt-get install -y \
build-essential \
mesa-common-dev \
freeglut3-dev \
wget \
git-core \
unzip \
doxygen
RUN git lfs install
RUN ln -s `locate libc.so.6` /lib/libc.so
# install latest cmake
RUN wget https://github.com/Kitware/CMake/releases/download/v3.14.3/cmake-3.14.3-Linux-x86_64.tar.gz && \
tar -xzf cmake-3.14.3-Linux-x86_64.tar.gz
# clone the current repo
RUN git clone https://github.com/CBICA/CaPTk.git
# start superbuild and then build CaPTk
RUN export PATH=`pwd`/cmake-3.14.3-Linux-x86_64/bin:$PATH && \
which cmake && \
cd CaPTk && \
echo "=== Starting CaPTk Superbuild ===" && \
mkdir bin && cd bin && \
cmake -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=./install_libs \
-Wno-dev .. && \
make -j4 && \
echo "=== Building CaPTk ===" && \
cmake -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=./install \
-Wno-dev .. && \
make install/strip -j4
# define entry point
ENTRYPOINT ["/CaPTk/bin/install/bin/CaPTk"]