Skip to content

Commit

Permalink
Merge pull request #81 from toolboc/arm32v6
Browse files Browse the repository at this point in the history
Add Dockerfile.arm32v6
  • Loading branch information
linki authored Jan 20, 2019
2 parents 856bc4a + 4a981ff commit 9de6933
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions Dockerfile.arm32v6
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>

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

USER 65534
ENTRYPOINT ["/bin/chaoskube"]

0 comments on commit 9de6933

Please sign in to comment.