Sfoglia il codice sorgente

fix: add VersionX and BuildTimeX to status

Yeuoly 6 mesi fa
parent
commit
47c8bed17c
1 ha cambiato i file con 5 aggiunte e 1 eliminazioni
  1. 5 1
      Dockerfile

+ 5 - 1
Dockerfile

@@ -12,7 +12,11 @@ WORKDIR /app
 # ENV GOPROXY=https://goproxy.cn,direct
 
 # build
-RUN go build -ldflags "-X 'internal.manifest.VersionX=${VERSION}' -X 'internal.manifest.BuildTimeX=$(date -u +%Y-%m-%dT%H:%M:%S%z)'" -o /app/main cmd/server/main.go
+RUN go build \
+    -ldflags "\
+    -X 'github.com/langgenius/dify-plugin-daemon/internal/manifest.VersionX=${VERSION}' \
+    -X 'github.com/langgenius/dify-plugin-daemon/internal/manifest.BuildTimeX=$(date -u +%Y-%m-%dT%H:%M:%S%z)'" \
+    -o /app/main cmd/server/main.go
 
 # copy entrypoint.sh
 COPY entrypoint.sh /app/entrypoint.sh