We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b3b044 commit cf3fbfbCopy full SHA for cf3fbfb
Dockerfile
@@ -8,7 +8,9 @@ RUN apk add --update libxml2-dev git make bash gcc g++ curl oniguruma-dev
8
RUN go get github.com/golang/dep/...
9
RUN dep ensure
10
RUN cd vendor/gopkg.in/bblfsh/client-go.v2 && make dependencies
11
-RUN go install -v -tags oniguruma -ldflags "-linkmode external -extldflags '-static -lz'" github.com/src-d/gitbase/...
+RUN VERSION=dev-$(git rev-parse --short HEAD)-$(test -n "`git status --porcelain`" && echo "-dirty" || true); \
12
+ go install -v -tags oniguruma -ldflags "-linkmode external -extldflags '-static -lz' -X main.version=$VERSION" \
13
+ github.com/src-d/gitbase/...
14
15
FROM alpine:3.8
16
0 commit comments