This commit is contained in:
Anton Nesterov 2024-09-10 06:01:24 +02:00
commit 1e1e8c9e70
4 changed files with 36 additions and 0 deletions

23
Dockerfile Normal file
View file

@ -0,0 +1,23 @@
FROM quay.io/jupyter/base-notebook:latest
USER root
RUN apt-get update \
&& apt-get -y install golang-go \
&& apt-get -y install nodejs npm \
&& apt-get -y install libzmq3-dev \
&& apt-get clean
USER $NB_UID
ENV PATH="$HOME/go/bin:$PATH"
RUN go install github.com/janpfeifer/gonb@latest
RUN go install golang.org/x/tools/cmd/goimports@latest
RUN go install golang.org/x/tools/gopls@latest
RUN gonb --install
ENV JUPYTER_ENABLE_LAB=yes
COPY requirements.txt .
RUN pip install -r requirements.txt
CMD ["start-notebook.py", "--IdentityProvider.token=''"]

13
docker-compose.yml Normal file
View file

@ -0,0 +1,13 @@
services:
web:
build: .
container_name: ntb
command:
- start-notebook.py
- --IdentityProvider.token=''
ports:
- "8888:8888"
volumes:
- ./work:/home/jovyan/work
environment:
- GRANT_SUDO=yes

0
requirements.txt Normal file
View file

0
work/.gitkeep Normal file
View file