add Dockerfile
This commit is contained in:
parent
2e67eb1db0
commit
72310e6d39
4 changed files with 61 additions and 1 deletions
19
Makefile
Normal file
19
Makefile
Normal file
|
@ -0,0 +1,19 @@
|
|||
DOCKER_NAME ?= blackanger/tutorial
|
||||
.PHONY: docker build_docker
|
||||
all:
|
||||
make -C usr user_img
|
||||
make -C os build
|
||||
run:
|
||||
make -C usr user_img
|
||||
make -C os run
|
||||
clean:
|
||||
make -C usr clean
|
||||
make -C os clean
|
||||
env:
|
||||
make -C os env
|
||||
|
||||
docker:
|
||||
docker run --rm -it --mount type=bind,source=$(shell pwd),destination=/mnt ${DOCKER_NAME}
|
||||
|
||||
build_docker:
|
||||
docker build -t ${DOCKER_NAME} .
|
Loading…
Add table
Add a link
Reference in a new issue