diff --git a/Dockerfile b/Dockerfile index 6e21da3d..1c0685a6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -83,6 +83,8 @@ RUN make get-sources COPY go.mod . RUN make prepare COPY . . +COPY .git . + RUN ESPEAK_DATA=/build/lib/Linux-$(uname -m)/piper_phonemize/lib/espeak-ng-data make build ################################### diff --git a/Makefile b/Makefile index d25ce75c..88910e02 100644 --- a/Makefile +++ b/Makefile @@ -20,7 +20,7 @@ STABLEDIFFUSION_VERSION?=d89260f598afb809279bc72aa0107b4292587632 GO_TAGS?= BUILD_ID?=git -VERSION?=$(shell git describe --always --tags --dirty || echo "dev" ) +VERSION?=$(shell git describe --always --tags || echo "dev" ) # go tool nm ./local-ai | grep Commit LD_FLAGS?= override LD_FLAGS += -X "github.com/go-skynet/LocalAI/internal.Version=$(VERSION)"