jupyter: looking what this jupyter thing folks are talking about

Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
Vincent Batts 2024-04-02 16:08:17 -04:00
parent d59b1af998
commit cabdd3adae
Signed by: vbatts
GPG key ID: E30EFAA812C6E5ED
2 changed files with 25 additions and 0 deletions

8
jupyter/Dockerfile Normal file
View file

@ -0,0 +1,8 @@
FROM r.batts.cloud/debian:bookworm
RUN apt update && \
apt install -y jupyter-notebook && \
rm -rf /var/lib/apt/lists/* && \
mkdir -p /data
VOLUME /data
EXPOSE 8888
ENTRYPOINT jupyter-notebook --allow-root --ip=0.0.0.0 --port=8888 --notebook-dir=/data

17
jupyter/Makefile Normal file
View file

@ -0,0 +1,17 @@
IMAGE_NAME := jupyter
default: run
.PHONY: build
build: Dockerfile
docker build --pull -t $(IMAGE_NAME) .
data:
mkdir -p $@
run: build data
docker run -it --rm -v $(pwd)/data:/data -p 8888:8888 $(IMAGE_NAME)
clean:
docker rmi -f $(IMAGE_NAME)