summaryrefslogtreecommitdiffstats
path: root/docker/arm/Dockerfile
blob: 28164f48efe898e08a3c09d7d34d6621d11b4519 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
FROM cmosh/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