fix: embed dist build action

This commit is contained in:
engigu
2026-03-05 17:33:31 +08:00
parent 8d2c869623
commit a8a24a410c
2 changed files with 8 additions and 3 deletions
+1 -1
View File
@@ -61,7 +61,7 @@ COPY --from=frontend-builder /app/web/dist ./internal/static/dist
RUN VERSION_VAL=$(cat /build-info/version.txt) && \
BUILD_TIME_VAL=$(cat /build-info/build_time.txt) && \
CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} \
go build -ldflags="-s -w -X github.com/engigu/baihu-panel/internal/constant.Version=${VERSION_VAL} -X 'github.com/engigu/baihu-panel/internal/constant.BuildTime=${BUILD_TIME_VAL}'" \
go build -tags web -ldflags="-s -w -X github.com/engigu/baihu-panel/internal/constant.Version=${VERSION_VAL} -X 'github.com/engigu/baihu-panel/internal/constant.BuildTime=${BUILD_TIME_VAL}'" \
-o baihu .
# ================================