Reformed Dockerfile and Makefile to account for moves

This commit is contained in:
Michael Bridgen committed 2014-10-03 21:01:45 +01:00
1 parent 9dcb7e2d73
commit 1ff9f7e9b7
2 files changed
+6 -5

No files matched your search

+1 -1
View File
@@ -1,5 +1,5 @@
FROM scratch
# EXPOSE 53/udp
WORKDIR /home/weave
ADD ./dns /home/weave/weavedns
ADD ./weavedns /home/weave/
ENTRYPOINT ["/home/weave/weavedns"]
+5 -4
View File
@@ -1,20 +1,21 @@
IMAGE:=/tmp/weavedns.tar
MAIN:=../main
.DEFAULT: docker-image
all: docker-image
dns: ../*.go main.go
go get && GOARCH=amd64 GOOS=linux go build -v
dns: ../*.go ../main/main.go
go get $(MAIN) && GOARCH=amd64 GOOS=linux go build -o weavedns -v $(MAIN)
.PHONY: docker-image
docker-image: $(IMAGE)
$(IMAGE): Dockerfile dns
sudo -E docker build --rm -t zettio/weavedns .
sudo -E docker build -t zettio/weavedns .
sudo -E docker save zettio/weavedns > $(IMAGE)
clean:
-sudo docker rmi zettio/weavedns
rm -f dns $(IMAGE)
rm -f weavedns $(IMAGE)