-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
42 lines (36 loc) · 1.29 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
FROM jupyter/base-notebook
USER root
RUN apt-get update -y ; apt-get upgrade -y
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get install -y tcsh vim
RUN apt-get install -y libxmu-dev libxt-dev libmotif-dev
RUN apt-get install -y libxpm-dev libxi-dev libxmhtml-dev
RUN apt-get install -y libglw1-mesa-dev libglu1-mesa-dev
RUN apt-get install -y libglib2.0-dev libgsl-dev
RUN apt-get install -y r-base m4
RUN apt-get install -y python-qt4 git
RUN apt-get install -yq --no-install-recommends gcc
RUN apt-get install -yq --no-install-recommends g++
#######################################
# this copies source code from the host
# into the image and invalidates the cache
RUN mkdir /usr/afni_build_dir
WORKDIR /usr/afni_build_dir
RUN mkdir src .git
COPY src src
COPY .git .git
ENV PATH=$PATH:/usr/afni_build_dir/src/afni_src/abin
ARG VERSION
# RUN git checkout "${VERSION}"
WORKDIR /usr/afni_build_dir/src
# o files are ignored by the repo but will
# cause the build to fail.
RUN make -f Makefile.linux_ubuntu_16_64 afni_src.tgz \
&& tar zxvf afni_src.tgz \
&& cd afni_src \
&& cp Makefile.linux_ubuntu_16_64 Makefile
WORKDIR /usr/afni_build_dir/src/afni_src
# RUN make libmri.so
RUN make itall && mv linux_ubuntu_16_64 abin
RUN apsearch -update_all_afni_help
WORKDIR /usr/afni_build_dir/src/afni_src/abin