18 lines
253 B
Makefile
18 lines
253 B
Makefile
|
|
||
|
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)
|