Skip to content

Commit 6d19a8b

Browse files
committed
fix: copy git to correctly display version in /version
1 parent f09ddd2 commit 6d19a8b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Dockerfile

+2
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,8 @@ RUN make get-sources
8383
COPY go.mod .
8484
RUN make prepare
8585
COPY . .
86+
COPY .git .
87+
8688
RUN ESPEAK_DATA=/build/lib/Linux-$(uname -m)/piper_phonemize/lib/espeak-ng-data make build
8789

8890
###################################

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ STABLEDIFFUSION_VERSION?=d89260f598afb809279bc72aa0107b4292587632
2020
GO_TAGS?=
2121
BUILD_ID?=git
2222

23-
VERSION?=$(shell git describe --always --tags --dirty || echo "dev" )
23+
VERSION?=$(shell git describe --always --tags || echo "dev" )
2424
# go tool nm ./local-ai | grep Commit
2525
LD_FLAGS?=
2626
override LD_FLAGS += -X "github.com/go-skynet/LocalAI/internal.Version=$(VERSION)"

0 commit comments

Comments
 (0)