-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
38 lines (29 loc) · 981 Bytes
/
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
ARG BASE_CONTAINER=jupyter/minimal-notebook
FROM $BASE_CONTAINER
USER root
# Install some stuff required to build ngn/k
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && \
apt-get -yq dist-upgrade && \
apt-get install -yq --no-install-recommends \
build-essential rlwrap && \
rm -rf /var/lib/apt/lists/*
USER $NB_UID
# RUN pip install jupyter_contrib_nbextensions
# RUN jupyter contrib nbextension install --user
# RUN jupyter nbextension enable spellchecker/main
# Fetch and build ngn/k
RUN git clone https://codeberg.org/ngn/k.git && \
cd k && \
make k-libc
ENV NGNKDIR=/home/jovyan/k
# Install the flit tool; a simplified python package manager
RUN pip install flit
# Fetch the ngnk_kernel source and install
RUN git clone https://github.com/xpqz/ngnk_kernel.git && \
cd ngnk_kernel && \
flit install && \
python install.py --sys-prefix && \
fix-permissions $CONDA_DIR && \
fix-permissions /home/$NB_USER
USER $NB_UID