forked from piloubazin/nighres
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
58 lines (48 loc) · 1.9 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
50
51
52
53
54
55
56
57
58
FROM ubuntu:16.04
RUN apt-get update && \
apt-get -y install sudo && \
sudo apt-get update -qq && \
apt-get install -y python3 \
python3-pip \
python3-dev \
build-essential \
software-properties-common \
openjdk-8-jdk \
git \
wget && \
sudo add-apt-repository ppa:openjdk-r/ppa && \
apt-get update -qq && \
apt-get install -y openjdk-8-jdk
RUN ln -svT "/usr/lib/jvm/java-8-openjdk-$(dpkg --print-architecture)" /docker-java-home
ENV JAVA_HOME=/docker-java-home \
JCC_JDK=/docker-java-home
RUN sudo apt-get install -y jcc && \
python3 -m pip install --upgrade pip \
wheel \
JCC \
urllib3 && \
python3 -m pip install jupyter \
nilearn \
sklearn \
nose \
matplotlib \
scipy \
psutil
RUN useradd --no-user-group --create-home --shell /bin/bash neuro && \
mkdir /home/neuro/nighres
COPY build.sh cbstools-lib-files.sh setup.py MANIFEST.in README.rst LICENSE imcntk-lib-files.sh /home/neuro/nighres/
COPY nighres /home/neuro/nighres/nighres
RUN cd /home/neuro/nighres && \
./build.sh && \
cd /home/neuro/nighres && python3 -m pip install . && \
mkdir /home/neuro/notebooks && \
chown -R neuro /home/neuro
COPY docker/jupyter_notebook_config.py /etc/jupyter/
EXPOSE 8888
ENV TINI_VERSION v0.6.0
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /usr/bin/tini
RUN chmod +x /usr/bin/tini
ENTRYPOINT ["/usr/bin/tini", "--"]
EXPOSE 8888
CMD ["jupyter", "notebook", "--port=8888", "--no-browser", "--ip=0.0.0.0"]
USER neuro