Dockerfile
31 lines
| 640 B
| text/x-dockerfile-config
|
DockerLexer
Kyle Kelley
|
r17968 | FROM ipython/scipystack | ||
MAINTAINER IPython Project <ipython-dev@scipy.org> | ||||
ADD . /srv/ipython/ | ||||
WORKDIR /srv/ipython/ | ||||
Kyle Kelley
|
r17969 | RUN pip2 install fabric | ||
RUN pip3 install jsonschema jsonpointer fabric | ||||
Kyle Kelley
|
r17968 | |||
Kyle Kelley
|
r17969 | RUN pip2 install . | ||
RUN pip3 install . | ||||
Kyle Kelley
|
r17968 | |||
EXPOSE 8888 | ||||
RUN echo "#!/bin/bash\nipython3 notebook --no-browser --port 8888 --ip=0.0.0.0" > /usr/local/bin/notebook.sh | ||||
RUN chmod a+x /usr/local/bin/notebook.sh | ||||
RUN useradd -m -s /bin/bash jupyter | ||||
USER jupyter | ||||
ENV HOME /home/jupyter | ||||
ENV SHELL /bin/bash | ||||
ENV USER jupyter | ||||
WORKDIR /home/jupyter/ | ||||
Kyle Kelley
|
r17969 | RUN ipython2 kernelspec install-self | ||
RUN ipython3 kernelspec install-self | ||||
Kyle Kelley
|
r17968 | CMD ["/usr/local/bin/notebook.sh"] | ||