diff --git a/Makefile b/Makefile new file mode 100644 index 000000000..8b5452c07 --- /dev/null +++ b/Makefile @@ -0,0 +1,17 @@ +.PHONY: build run + +.SUFFIXES: + +OPEN = $(shell which xdg-open || which open) +PORT ?= 9000 + +build: + docker build --rm -t dockerui . + +run: + docker run -d -p $(PORT):9000 -v /var/run/docker.sock:/docker.sock dockerui -e /docker.sock + +open: + $(OPEN) localhost:$(PORT) + +