2018-01-27 04:49:14 -08:00
|
|
|
FROM cmosh/alpine-arm:edge
|
2018-01-09 15:04:24 -08:00
|
|
|
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
|