-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (20 loc) · 702 Bytes
/
Dockerfile
File metadata and controls
25 lines (20 loc) · 702 Bytes
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
FROM ubuntu:20.04
ENV TZ=US/New_York
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
apt-get install -y wget cmake cmake-curses-gui gcc g++ git zlib1g-dev
RUN wget https://github.com/ANTsX/ANTs/archive/v2.3.4.tar.gz && \
tar xvf v2.3.4.tar.gz && \
mkdir ANTs-2.3.4/build && \
cd ANTs-2.3.4/build && \
cmake ../ && \
make -j8
RUN mkdir -p /opt/ants/bin && \
cd /ANTs-2.3.4/build/ANTS-build/Examples && \
cp `ls | awk '! /\.a|\.cxx|\.cmake|Makefile|CMakeFiles|TestSuite/'` /opt/ants/bin && \
mv /ANTs-2.3.4/Scripts /opt/ants && \
chmod -R 755 /opt/ants && \
rm -rf /ANTs-2.3.4 && \
rm /v2.3.4.tar.gz
ENV ANTSPATH=/opt/ants/bin
ENV PATH=${ANTSPATH}:/opt/ants/Scripts:${PATH}