-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #81 from toolboc/arm32v6
Add Dockerfile.arm32v6
- Loading branch information
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |