/
Dockerfile
53 lines (40 loc) · 1.57 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
48
49
50
51
52
53
FROM sumankhanal/rakudo:2021.05
#FROM librasteve/rakudo:ubuntu-arm64-2021.05
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 \
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/p6-jupyter-kernel.git --force-test \
&& zef install Pod::To::HTML \
&& jupyter-kernel.raku --generate-config \
&& ln -s /usr/share/perl6/site/bin/* /usr/local/bin
RUN zef install -v Math::Polygons \
&& git clone https://github.com/librasteve/raku-Math-Polygons.git \
&& cp -R raku-Math-Polygons/eg ${HOME}
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", "--"]
#ENTRYPOINT ["/bin/bash"]
#For enabling binder..........................
#COPY ./raku-notebooks/ ${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"]