Skip to content

Commit

Permalink
Add Dockerfile (#116)
Browse files Browse the repository at this point in the history
Add some docker bits and a Makefile.
  • Loading branch information
miekg committed Apr 13, 2016
1 parent 9823775 commit da447e2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
9 changes: 9 additions & 0 deletions 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"]
7 changes: 7 additions & 0 deletions 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 .

0 comments on commit da447e2

Please sign in to comment.