jupyter: looking what this jupyter thing folks are talking about
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
parent
d59b1af998
commit
cabdd3adae
2 changed files with 25 additions and 0 deletions
8
jupyter/Dockerfile
Normal file
8
jupyter/Dockerfile
Normal 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
17
jupyter/Makefile
Normal 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)
|
Loading…
Reference in a new issue