matterbridge/Dockerfile

12 lines
454 B
Docker
Raw Normal View History

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