forked from bduggan/raku-jupyter-kernel
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDockerfile.rakudo-HEAD
40 lines (30 loc) · 1.4 KB
/
Dockerfile.rakudo-HEAD
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
FROM debian:latest
LABEL maintainer="Dr Suman Khanal <suman81765@gmail.com>"
#Enabling Binder..................................
ENV NB_USER suman
ENV NB_UID 1000
ENV HOME /home/${NB_USER}
RUN adduser --disabled-password \
--gecos "Default user" \
--uid ${NB_UID} \
${NB_USER}
#..............................................
ENV PATH=$PATH:/usr/share/perl6/site/bin
RUN apt-get update \
&& apt-get install -y build-essential tini wget libzmq3-dev ca-certificates git \
python3-setuptools jupyter jupyter-notebook asciinema jupyterhub openssl libssl-dev
RUN bash -c 'pushd . && cd /tmp && git clone https://github.com/rakudo/rakudo.git && cd rakudo && perl Configure.pl --gen-moar --gen-nqp --backends=moar --prefix=/usr && make && make install && cd .. && git clone https://github.com/ugexe/zef.git && cd zef && raku -I. bin/zef install . && popd'
RUN zef install SVG::Plot OpenSSL --force-test
RUN zef -v install git://github.com/antononcube/Raku-Jupyter-Chatbook.git \
&& jupyter-chatbook.raku --generate-config --force \
&& ln -s /usr/share/perl6/site/bin/* /usr/local/bin
ENTRYPOINT ["/usr/bin/tini", "--"]
#For enabling binder..........................
COPY eg ${HOME}
USER root
RUN chown -R ${NB_UID} ${HOME}
USER ${NB_USER}
WORKDIR ${HOME}
#..............................................
EXPOSE 8888
CMD ["jupyter", "notebook", "--port=8888", "--no-browser", "--ip=0.0.0.0", "--allow-root"]