forked from jupyter/notebook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
74 lines (65 loc) · 2.14 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# Installs Jupyter Notebook and IPython kernel from the current branch
# Another Docker container should inherit with `FROM jupyter/notebook`
# to run actual services.
FROM ubuntu:14.04
MAINTAINER Project Jupyter <[email protected]>
# Not essential, but wise to set the lang
# Note: Users with other languages should set this in their derivative image
ENV LANGUAGE en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LC_ALL en_US.UTF-8
# Python binary and source dependencies
RUN apt-get update -qq \
&& DEBIAN_FRONTEND=noninteractive apt-get install -yq --no-install-recommends \
build-essential \
ca-certificates \
curl \
git \
language-pack-en \
libcurl4-openssl-dev \
libsqlite3-dev \
libzmq3-dev \
pandoc \
python \
python-dev \
python3-dev \
sqlite3 \
texlive-fonts-recommended \
texlive-latex-base \
texlive-latex-extra \
zlib1g-dev \
&& rm -rf /var/lib/apt/lists/* \
\
`# Install the recent pip release` \
&& curl -O https://bootstrap.pypa.io/get-pip.py \
&& python2 get-pip.py \
&& python3 get-pip.py \
&& rm get-pip.py \
\
&& pip2 --no-cache-dir install ipykernel \
&& pip3 --no-cache-dir install ipykernel
ADD . /usr/src/jupyter-notebook
RUN ln -s /usr/src/jupyter-notebook/scripts/lxc-launcher.sh /launch.sh \
\
&& BUILD_DEPS="nodejs-legacy npm" \
&& apt-get update -qq \
&& DEBIAN_FRONTEND=noninteractive apt-get install -yq --no-install-recommends $BUILD_DEPS \
\
&& pip3 install --no-cache-dir --pre -e /usr/src/jupyter-notebook \
\
&& apt-get purge -y --auto-remove \
-o APT::AutoRemove::RecommendsImportant=false -o APT::AutoRemove::SuggestsImportant=false $BUILD_DEPS \
&& rm -rf /var/lib/apt/lists/* \
\
&& python2 -m ipykernel.kernelspec \
&& python3 -m ipykernel.kernelspec \
\
&& pip2 install --no-cache-dir mock nose requests testpath \
&& pip3 install --no-cache-dir nose requests testpath \
&& iptest2 && iptest3 \
&& pip2 uninstall -y funcsigs mock nose pbr requests six testpath \
&& pip3 uninstall -y nose requests testpath
VOLUME /notebooks
WORKDIR /notebooks
ENTRYPOINT /launch.sh
EXPOSE 8888