summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWim <wim@42.be>2018-01-10 00:04:24 +0100
committerWim <wim@42.be>2018-01-10 00:04:24 +0100
commitd0b2ee5c8549fcf9a48478d577a3e77f5f0e4ea1 (patch)
tree9dd0a6fdbcf55929fe0b09e0abbfbdccb208fc60
parent8830a5a1dfb2390632e1d82d0d1d5e802fe7dbff (diff)
downloadmatterbridge-msglm-d0b2ee5c8549fcf9a48478d577a3e77f5f0e4ea1.tar.gz
matterbridge-msglm-d0b2ee5c8549fcf9a48478d577a3e77f5f0e4ea1.tar.bz2
matterbridge-msglm-d0b2ee5c8549fcf9a48478d577a3e77f5f0e4ea1.zip
Add support for docker arm builds. #328
-rw-r--r--docker/arm/Dockerfile11
1 files changed, 11 insertions, 0 deletions
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