-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
28 lines (22 loc) · 913 Bytes
/
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
FROM ubuntu:focal-20210416
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
ca-certificates \
cmake \
gcc \
git \
make \
zlib1g \
zlib1g-dev \
&& apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
WORKDIR /opt/ants
ARG VERSION
RUN git config --global url."https://".insteadOf git:// \
&& git clone https://github.com/ANTsX/ANTs.git --branch ${VERSION}
WORKDIR /opt/ants/build
RUN mkdir /opt/ants/install \
&& cmake -DCMAKE_INSTALL_PREFIX=/opt/ants/install -DBUILD_TESTING=OFF ../ANTs 2>&1 | tee cmake.log \
&& make -j 4 2>&1 | tee build.log
WORKDIR /opt/ants/build/ANTS-build
RUN make install 2>&1 | tee install.log