dockerfiles/coredns/Dockerfile
Jess Frazelle 459ee74b64
update latest versions
Signed-off-by: Jess Frazelle <acidburn@github.com>
2018-12-18 10:51:49 -05:00

27 lines
612 B
Docker

FROM golang:alpine as builder
LABEL maintainer "Jessie Frazelle <jess@linux.com>"
ENV PATH /go/bin:/usr/local/go/bin:$PATH
ENV GOPATH /go
RUN apk --no-cache add \
ca-certificates \
git \
make
ENV COREDNS_VERSION v1.3.0
RUN git clone --depth 1 --branch ${COREDNS_VERSION} https://github.com/coredns/coredns /go/src/github.com/coredns/coredns
WORKDIR /go/src/github.com/coredns/coredns
RUN make CHECKS="godeps" \
&& mv coredns /usr/bin/coredns
FROM alpine:latest
COPY --from=builder /usr/bin/coredns /usr/bin/coredns
COPY --from=builder /etc/ssl/certs/ /etc/ssl/certs
ENTRYPOINT [ "coredns", "-log" ]