1
# Installs IPython from the current branch
2
# Another Docker container should build from this one to get services like the notebook
6
MAINTAINER IPython Project <ipython-dev@scipy.org>
8
ENV DEBIAN_FRONTEND noninteractive
10
# Make sure apt is up to date
12
RUN apt-get upgrade -y
14
# Not essential, but wise to set the lang
15
# Note: Users with other languages should set this in their derivative image
16
RUN apt-get install -y language-pack-en
17
ENV LANGUAGE en_US.UTF-8
19
ENV LC_ALL en_US.UTF-8
21
RUN locale-gen en_US.UTF-8
22
RUN dpkg-reconfigure locales
24
# Python binary dependencies, developer tools
25
RUN apt-get install -y -q build-essential make gcc zlib1g-dev git && \
26
apt-get install -y -q python python-dev python-pip python3-dev python3-pip && \
27
apt-get install -y -q libzmq3-dev sqlite3 libsqlite3-dev pandoc libcurl4-openssl-dev nodejs nodejs-legacy npm
29
# In order to build from source, need less
30
RUN npm install -g less
32
RUN apt-get install -y -q fabric python-sphinx python3-sphinx
38
RUN chmod -R +rX /srv/ipython
40
# .[all] only works with -e, so use file://path#egg
41
# Can't use -e because ipython2 and ipython3 will clobber each other
42
RUN pip2 install file:///srv/ipython#egg=ipython[all]
43
RUN pip3 install file:///srv/ipython#egg=ipython[all]
46
RUN python2 -m IPython kernelspec install-self --system
47
RUN python3 -m IPython kernelspec install-self --system