Browse Source

Merge pull request #183 from devome/master

修复Docker中版本不能正常显示的bug
Chin allan 3 years ago
parent
commit
2866f308dc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Dockerfile

+ 1 - 1
Dockerfile

@@ -29,7 +29,7 @@ COPY --from=frontBuilder /usr/src/app/dist/spa /homelab/buildspace/frontend/dist
 
 # 执行编译,-o 指定保存位置和程序编译名称
 RUN cd ./cmd/chinesesubfinder \
-    && go build -ldflags='-s -w --extldflags "-static -fpic" -X main.AppVersion=${VERSION}' -o /app/chinesesubfinder
+    && go build -ldflags="-s -w --extldflags '-static -fpic' -X main.AppVersion=${VERSION}" -o /app/chinesesubfinder
 
 # 运行时环境
 FROM lsiobase/ubuntu:bionic