-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy pathdockerfile
44 lines (36 loc) · 1.64 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
FROM python:3.5
MAINTAINER Michaël Defferrard <[email protected]>
# Now that we have wheels, llvmlite includes llvm and numpy includes openblas.
# RUN echo "deb http://apt.llvm.org/jessie/ llvm-toolchain-jessie-3.9 main" >> /etc/apt/sources.list && \
# wget -O - http://apt.llvm.org/llvm-snapshot.gpg.key | apt-key add - && \
# apt-get update && \
# apt-get install -y --no-install-recommends \
# llvm-3.9-runtime llvm-3.9-dev \
# libatlas-base-dev liblapack-dev gfortran \
# && \
# apt-get clean && \
# rm -rf /var/lib/apt/lists/*
# Alternative to ATLAS: libopenblas-dev
# ENV LLVM_CONFIG=llvm-config-3.9
RUN apt-get update && \
apt-get install -y --no-install-recommends gfortran && \
apt-get clean
WORKDIR /data
RUN git clone --depth=1 https://github.com/mdeff/ntds_2016.git repo && \
mkdir mount
# Installing numpy first because of pip dependancy resolution bug.
RUN pip --no-cache-dir install --upgrade pip && \
pip --no-cache-dir install numpy && \
pip --no-cache-dir install -r repo/requirements.txt && \
jupyter nbextension enable --py --sys-prefix widgetsnbextension && \
jupyter nbextension install --py --sys-prefix vega && \
jupyter nbextension enable --py --sys-prefix vega && \
make -C repo test
# Add Tini.
ADD https://github.com/krallin/tini/releases/download/v0.13.0/tini /usr/bin/tini
RUN chmod +x /usr/bin/tini
ENTRYPOINT ["/usr/bin/tini", "--"]
CMD ["jupyter", "notebook", "--no-browser", "--port=8888", "--ip=0.0.0.0", \
"--config=/data/repo/jupyter_notebook_config.py", "--allow-root"]
# Authentication: password and SSL certificate in config.
EXPOSE 8888