4
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2025-06-26 03:59:25 +00:00

Add githash to docker builds

This commit is contained in:
Wim
2017-02-17 22:32:42 +01:00
parent 7558a2162e
commit 956d7cf3f3
2 changed files with 12 additions and 9 deletions

View File

@ -6,6 +6,6 @@ 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 -o /bin/matterbridge \
&& 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