Jupyter with IPerl
# Use offical jupyter image and added iperl
# docker run --rm -it -p 8000:8888 -v "$(pwd):/notebooks" nated/jupyter
FROM jupyter/notebook
MAINTAINER Daniel Biesecke <dbiesecke@gmail.com>
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -yq --no-install-recommends \
libzmq3-dev libmagic-dev cpanminus
RUN git clone https://github.com/EntropyOrg/p5-Devel-IPerl.git /iperl
RUN cd /iperl/ && cpanm --installdeps .
RUN jupyter-kernelspec install /iperl
RUN mkdir -p -m 700 /root/.jupyter/ && \
echo "c.NotebookApp.ip = '*'" >> /root/.jupyter/jupyter_notebook_config.py && \
echo "c.MultiKernelManager.default_kernel_name = 'iperl'"
RUN rm -fR /root/.cpanm/work/*
RUN apt-get clean && \
rm -rf /var/lib/apt/lists/* && \
apt-get purge -y --auto-remove \
-o APT::AutoRemove::RecommendsImportant=false -o APT::AutoRemove::SuggestsImportant=false $BUILD_DEPS
ENTRYPOINT ["/iperl/bin/iperl"]
CMD ["notebook"]