diff --git a/Dockerfile.ppc64le b/Dockerfile.ppc64le new file mode 100644 index 00000000..34b0ca62 --- /dev/null +++ b/Dockerfile.ppc64le @@ -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 + +COPY --from=builder /bin/chaoskube /bin/chaoskube + +ENTRYPOINT ["/bin/chaoskube"]