Add support for docker arm builds. #328

This commit is contained in:
Wim 2018-01-10 00:04:24 +01:00
parent 8830a5a1df
commit d0b2ee5c85

11
docker/arm/Dockerfile Normal file
View File

@ -0,0 +1,11 @@
FROM easypi/alpine-arm:edge
ENTRYPOINT ["/bin/matterbridge"]
COPY . /go/src/github.com/42wim/matterbridge
RUN apk update && apk add go git gcc musl-dev ca-certificates \
&& cd /go/src/github.com/42wim/matterbridge \
&& export GOPATH=/go \
&& go get \
&& go build -x -ldflags "-X main.githash=$(git log --pretty=format:'%h' -n 1)" -o /bin/matterbridge \
&& rm -rf /go \
&& apk del --purge git go gcc musl-dev