mirror of
https://github.com/mudler/LocalAI.git
synced 2024-12-18 20:27:57 +00:00
fix: copy git to correctly display version in /version
This commit is contained in:
parent
f09ddd2983
commit
6d19a8bdb5
@ -83,6 +83,8 @@ RUN make get-sources
|
|||||||
COPY go.mod .
|
COPY go.mod .
|
||||||
RUN make prepare
|
RUN make prepare
|
||||||
COPY . .
|
COPY . .
|
||||||
|
COPY .git .
|
||||||
|
|
||||||
RUN ESPEAK_DATA=/build/lib/Linux-$(uname -m)/piper_phonemize/lib/espeak-ng-data make build
|
RUN ESPEAK_DATA=/build/lib/Linux-$(uname -m)/piper_phonemize/lib/espeak-ng-data make build
|
||||||
|
|
||||||
###################################
|
###################################
|
||||||
|
2
Makefile
2
Makefile
@ -20,7 +20,7 @@ STABLEDIFFUSION_VERSION?=d89260f598afb809279bc72aa0107b4292587632
|
|||||||
GO_TAGS?=
|
GO_TAGS?=
|
||||||
BUILD_ID?=git
|
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
|
# go tool nm ./local-ai | grep Commit
|
||||||
LD_FLAGS?=
|
LD_FLAGS?=
|
||||||
override LD_FLAGS += -X "github.com/go-skynet/LocalAI/internal.Version=$(VERSION)"
|
override LD_FLAGS += -X "github.com/go-skynet/LocalAI/internal.Version=$(VERSION)"
|
||||||
|
Loading…
Reference in New Issue
Block a user