##// END OF EJS Templates
Make this a solid, minimal base image....
Kyle Kelley -
Show More
@@ -1,24 +1,46 b''
1 # Just installs IPython from master
1 # Installs IPython from the current branch
2 # Another Docker container should build from this one to see the Notebook itself
2 # Another Docker container should build from this one to get services like the notebook
3
3
4 FROM ipython/scipystack
4 FROM ubuntu:14.04
5
5
6 MAINTAINER IPython Project <ipython-dev@scipy.org>
6 MAINTAINER IPython Project <ipython-dev@scipy.org>
7
7
8 # Make sure apt is up to date
9 RUN apt-get update
10 RUN apt-get upgrade -y
11
12 # Not essential, but wise to set the lang
13 # Note: Users with other languages should set this in their derivative image
14 RUN apt-get install -y language-pack-en
15 ENV LANGUAGE en_US.UTF-8
16 ENV LANG en_US.UTF-8
17 ENV LC_ALL en_US.UTF-8
18
19 RUN locale-gen en_US.UTF-8
20 RUN dpkg-reconfigure locales
21
22 # Python binary dependencies, developer tools
23 RUN apt-get install -y -q build-essential make gcc zlib1g-dev git && \
24 apt-get install -y -q python python-dev python-pip python3-dev python3-pip && \
25 apt-get install -y -q libzmq3-dev sqlite3 libsqlite3-dev pandoc libcurl4-openssl-dev nodejs nodejs-legacy npm
26
27 # In order to build from source, need less
28 RUN npm install -g less
29
8 RUN apt-get -y install fabric
30 RUN apt-get -y install fabric
9
31
10 RUN mkdir -p /srv/
32 RUN mkdir -p /srv/
11 WORKDIR /srv/
33 WORKDIR /srv/
12 ADD . /srv/ipython
34 ADD . /srv/ipython
13 WORKDIR /srv/ipython/
35 WORKDIR /srv/ipython/
14 RUN chmod -R +rX /srv/ipython
36 RUN chmod -R +rX /srv/ipython
15
37
16 # .[all] only works with -e, so use file://path#egg
38 # .[all] only works with -e, so use file://path#egg
17 # Can't use -e because ipython2 and ipython3 will clobber each other
39 # Can't use -e because ipython2 and ipython3 will clobber each other
18 RUN pip2 install --upgrade file:///srv/ipython#egg=ipython[all]
40 RUN pip2 install --upgrade file:///srv/ipython#egg=ipython[all]
19 RUN pip3 install --upgrade file:///srv/ipython#egg=ipython[all]
41 RUN pip3 install --upgrade file:///srv/ipython#egg=ipython[all]
20
42
21 # install kernels
43 # install kernels
22 RUN python2 -m IPython kernelspec install-self --system
44 RUN python2 -m IPython kernelspec install-self --system
23 RUN python3 -m IPython kernelspec install-self --system
45 RUN python3 -m IPython kernelspec install-self --system
24
46
General Comments 0
You need to be logged in to leave comments. Login now