diff options
author | Wim <wim@42.be> | 2017-02-17 22:32:42 +0100 |
---|---|---|
committer | Wim <wim@42.be> | 2017-02-17 22:32:42 +0100 |
commit | 956d7cf3f31ea949a34537ff2f08a6b9f5918b6c (patch) | |
tree | e1c6fef3c099ac5362e53521b86cb8dd2937bbbf /Dockerfile | |
parent | 7558a2162e79ffa29b11881fe249ec836a8c8b3d (diff) | |
download | matterbridge-msglm-956d7cf3f31ea949a34537ff2f08a6b9f5918b6c.tar.gz matterbridge-msglm-956d7cf3f31ea949a34537ff2f08a6b9f5918b6c.tar.bz2 matterbridge-msglm-956d7cf3f31ea949a34537ff2f08a6b9f5918b6c.zip |
Add githash to docker builds
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |