Browse Source

fix: add VersionX and BuildTimeX to status

Yeuoly 6 months ago
parent
commit
47c8bed17c
1 changed files with 5 additions and 1 deletions
  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