2016-05-21 14:30:39 +00:00
|
|
|
FROM alpine:edge
|
|
|
|
ENTRYPOINT ["/bin/matterbridge"]
|
|
|
|
|
|
|
|
COPY . /go/src/github.com/42wim/matterbridge
|
2020-01-07 22:33:58 +00:00
|
|
|
RUN apk update && apk add go git gcc musl-dev ca-certificates mailcap \
|
2016-05-21 14:30:39 +00:00
|
|
|
&& cd /go/src/github.com/42wim/matterbridge \
|
|
|
|
&& export GOPATH=/go \
|
|
|
|
&& go get \
|
2017-02-17 21:32:42 +00:00
|
|
|
&& go build -x -ldflags "-X main.githash=$(git log --pretty=format:'%h' -n 1)" -o /bin/matterbridge \
|
2016-05-21 14:30:39 +00:00
|
|
|
&& rm -rf /go \
|
2016-08-20 16:08:04 +00:00
|
|
|
&& apk del --purge git go gcc musl-dev
|