From d0b2ee5c8549fcf9a48478d577a3e77f5f0e4ea1 Mon Sep 17 00:00:00 2001 From: Wim Date: Wed, 10 Jan 2018 00:04:24 +0100 Subject: [PATCH] Add support for docker arm builds. #328 --- docker/arm/Dockerfile | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 docker/arm/Dockerfile diff --git a/docker/arm/Dockerfile b/docker/arm/Dockerfile new file mode 100644 index 00000000..f37dd81d --- /dev/null +++ b/docker/arm/Dockerfile @@ -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