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 7c35fd3 commit a124ad4Copy full SHA for a124ad4
Dockerfile
@@ -8,7 +8,10 @@ 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=$(git describe --exact-match --tags 2>/dev/null || \
12
+ echo dev-$(git rev-parse --short HEAD)$(test -n "`git status --porcelain`" && echo "-dirty" || true)); \
13
+ go install -v -tags oniguruma -ldflags "-linkmode external -extldflags '-static -lz' -X main.version=$VERSION" \
14
+ github.com/src-d/gitbase/...
15
16
FROM alpine:3.8
17
0 commit comments