-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
45 lines (40 loc) · 2.06 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
FROM rocker/binder:3.5.0
USER root
COPY . ${HOME}
COPY --chown=rstudio:rstudio . ${HOME}
RUN chown -R ${NB_USER} ${HOME}
RUN apt-get update; \
apt-get -y upgrade
RUN apt-get -y install cmake curl
RUN CMAKE_INSTALLER=install-cmake.sh && \
curl -sSL https://cmake.org/files/v3.11/cmake-3.11.3-Linux-x86_64.sh -o ${CMAKE_INSTALLER} && \
chmod +x ${CMAKE_INSTALLER} && \
./${CMAKE_INSTALLER} --prefix=/usr/local --skip-license
RUN apt-get -y install -y python3 python3-pip
RUN chown -R ${NB_USER} /home/rstudio/.cache/pip/http
RUN chown -R ${NB_USER} /home/rstudio/.cache/pip
# RUN pip3 install --upgrade pip3
RUN apt-get install -y libv8-dev
RUN apt-get install -y python3-tk
RUN pip3 install virtualenv wheel
RUN pip3 install scipy pandas numpy matplotlib sklearn statsmodels nibabel
RUN pip3 install coveralls plotly webcolors scikit-image
RUN pip3 install keras tensorflow
# RUN git clone https://github.com/ANTsX/ANTsPy.git
# RUN cd ANTsPy && pip3 wheel .
# RUN cd ANTsPy && python3 setup.py install && cd ..
RUN wget https://github.com/ANTsX/ANTsPy/releases/download/v0.1.8/antspyx-0.1.7-cp35-cp35m-linux_x86_64.whl
RUN pip3 install antspyx-0.1.7-cp35-cp35m-linux_x86_64.whl -t .
RUN pip3 install --user antspyx-0.1.7-cp35-cp35m-linux_x86_64.whl
## Run an install.R script, if it exists.
RUN if [ -f install.R ]; then R --quiet -f install.R; fi
RUN wget https://github.com/stnava/ITKR/releases/download/v0.5.0.0.5/ITKR_0.5.0_R_x86_64-pc-linux-gnu_R3.5.tar.gz
RUN R CMD INSTALL ITKR_0.5.0_R_x86_64-pc-linux-gnu_R3.5.tar.gz
RUN wget https://github.com/ANTsX/ANTsRCore/releases/download/v0.6.3.9/ANTsRCore_0.6.3.9_R_x86_64-pc-linux-gnu_R3.5.tar.gz
RUN R CMD INSTALL ANTsRCore_0.6.3.9_R_x86_64-pc-linux-gnu_R3.5.tar.gz
RUN wget https://github.com/ANTsX/ANTsR/releases/download/v0.4.9/ANTsR_0.4.9_R_x86_64-pc-linux-gnu_R.tar.gz
RUN R CMD INSTALL ANTsR_0.4.9_R_x86_64-pc-linux-gnu_R.tar.gz
RUN git clone https://github.com/ANTsX/ANTsRNet.git && R CMD INSTALL ANTsRNet
RUN rm *tar.gz *sh *txt *.md LICENSE install.R *.whl
## Become normal user again
USER ${NB_USER}