forked from bduggan/raku-jupyter-kernel
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
47 lines (34 loc) · 1.33 KB
/
Dockerfile
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
41
42
43
44
45
46
47
FROM sumankhanal/rakudo:daily
LABEL maintainer="Dr Suman Khanal <[email protected]>"
#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 \
wget libzmq3-dev ca-certificates \
python3-pip python3-setuptools \
&& rm -rf /var/lib/apt/lists/* && pip3 install jupyter notebook asciinema jupyterlab pyscaffold --no-cache-dir \
&& zef -v install git://github.com/bduggan/[email protected] --force-test \
&& zef install SVG::Plot --force-test \
&& jupyter-kernel.raku --generate-config \
&& ln -s /usr/share/perl6/site/bin/* /usr/local/bin
ENV TINI_VERSION v0.18.0
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /usr/bin/tini
RUN chmod +x /usr/bin/tini
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"]