Skip to content

Commit

Permalink
Merge pull request #60 from hchenxa/master
Browse files Browse the repository at this point in the history
add ppc64le docker file
  • Loading branch information
linki authored May 14, 2018
2 parents a4acf6f + 295621c commit 471b50c
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Dockerfile.ppc64le
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# builder image
FROM golang:1.9-alpine as builder

RUN apk --no-cache add git
RUN go get github.com/golang/dep/cmd/dep
WORKDIR /go/src/github.com/linki/chaoskube
COPY . .
RUN dep ensure
RUN go test -v ./...
RUN GOARCH=ppc64le go build -o /bin/chaoskube -v \
-ldflags "-X main.version=$(git describe --tags --always --dirty) -w -s"

# final image
FROM ppc64le/alpine:3.6
MAINTAINER Linki <linki+docker.com@posteo.de>

COPY --from=builder /bin/chaoskube /bin/chaoskube

ENTRYPOINT ["/bin/chaoskube"]

0 comments on commit 471b50c

Please # to comment.