Add Dockerfile (#116)

Add some docker bits and a Makefile.
This commit is contained in:
Miek Gieben 2016-04-13 20:14:13 +01:00
parent 982377516b
commit da447e28f4
2 changed files with 16 additions and 0 deletions

9
Dockerfile Normal file
View file

@ -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"]

7
Makefile Normal file
View file

@ -0,0 +1,7 @@
all:
go build
.PHONY: docker
docker:
GOOS=linux go build -a -tags netgo -installsuffix netgo
docker build -t $$USER/coredns .