diff options
author | 2016-04-13 20:14:13 +0100 | |
---|---|---|
committer | 2016-04-13 20:14:13 +0100 | |
commit | da447e28f494c47c5212f0e045ba8c3c065f45fb (patch) | |
tree | 0a715ef840c375e710c52ee9442bfca484908a25 | |
parent | 982377516b3c7381de40ebbcdb6e8a73e6b44b54 (diff) | |
download | coredns-da447e28f494c47c5212f0e045ba8c3c065f45fb.tar.gz coredns-da447e28f494c47c5212f0e045ba8c3c065f45fb.tar.zst coredns-da447e28f494c47c5212f0e045ba8c3c065f45fb.zip |
Add Dockerfile (#116)
Add some docker bits and a Makefile.
-rw-r--r-- | Dockerfile | 9 | ||||
-rw-r--r-- | Makefile | 7 |
2 files changed, 16 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 000000000..b76adcc63 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,9 @@ +FROM alpine:latest +MAINTAINER Miek Gieben <miek@miek.nl> @miekg + +RUN apk --update add bind-tools && rm -rf /var/cache/apk/* + +ADD coredns /coredns + +EXPOSE 53 53/udp +ENTRYPOINT ["/coredns"] diff --git a/Makefile b/Makefile new file mode 100644 index 000000000..7e5710fa9 --- /dev/null +++ b/Makefile @@ -0,0 +1,7 @@ +all: + go build + +.PHONY: docker +docker: + GOOS=linux go build -a -tags netgo -installsuffix netgo + docker build -t $$USER/coredns . |