init
This commit is contained in:
commit
1e1e8c9e70
23
Dockerfile
Normal file
23
Dockerfile
Normal 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
13
docker-compose.yml
Normal 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
0
requirements.txt
Normal file
0
work/.gitkeep
Normal file
0
work/.gitkeep
Normal file
Loading…
Reference in a new issue