Add VERSION parameter for containers

This commit is contained in:
George Tankersley 2020-06-01 14:26:17 -04:00
parent dc27d65439
commit c7d1423bfd
1 changed files with 8 additions and 3 deletions

View File

@ -1,4 +1,6 @@
.PHONY: docker docker-run install uninstall all clean
.PHONY: docker docker-run docker-clean install uninstall all clean
VERSION=v0.1.0
all: build_output/coredns
@ -18,7 +20,10 @@ uninstall:
bash scripts/uninstall_systemd.sh
docker:
docker build -t zfnd-seeder:latest -f Dockerfile .
docker build -t zfnd-seeder:$(VERSION) -f Dockerfile .
docker-run:
docker run --rm -p 53:8053/udp -p 53:8053/tcp -p 8080 zfnd-seeder:latest
docker run -d --rm -p 1053:8053/udp -p 1053:8053/tcp -p 8080 zfnd-seeder:$(VERSION)
docker-clean:
docker rmi zfnd-seeder:$(VERSION)