diff --git a/Dockerfile.arm32v6 b/Dockerfile.arm32v6 new file mode 100644 index 00000000..03ca07d4 --- /dev/null +++ b/Dockerfile.arm32v6 @@ -0,0 +1,22 @@ +# builder image +FROM golang:1.11-alpine3.8 as builder + +ENV CGO_ENABLED 0 +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 -vendor-only +RUN go test -v ./... +ENV GOARCH arm +RUN go build -o /bin/chaoskube -v \ + -ldflags "-X main.version=$(git describe --tags --always --dirty) -w -s" + +# final image +FROM arm32v6/alpine:3.8 +MAINTAINER Linki + +COPY --from=builder /bin/chaoskube /bin/chaoskube + +USER 65534 +ENTRYPOINT ["/bin/chaoskube"]