5
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2024-12-26 08:35:44 +00:00
matterbridge/Dockerfile

12 lines
446 B
Docker
Raw Normal View History

2016-05-21 14:30:39 +00:00
FROM alpine:edge
ENTRYPOINT ["/bin/matterbridge"]
COPY . /go/src/github.com/42wim/matterbridge
2016-08-20 16:08:04 +00:00
RUN apk update && apk add go git gcc musl-dev ca-certificates \
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