Skip to content

Commit

Permalink
Add a Dockerfile for centos:7 and CI building
Browse files Browse the repository at this point in the history
  • Loading branch information
smarterclayton committed Jun 12, 2018
1 parent 1f8cff1 commit 8be4794
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
12 changes: 0 additions & 12 deletions .dockerignore

This file was deleted.

8 changes: 8 additions & 0 deletions Dockerfile.ci
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM openshift/origin-release:golang-1.9 as build
WORKDIR /go/src/github.com/coredns/coredns
ENV GOPATH=/go
COPY . .
RUN go build -o coredns .

FROM centos:7
COPY --from=build /go/src/github.com/coredns/coredns/coredns /usr/bin/coredns

0 comments on commit 8be4794

Please sign in to comment.