mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-19 09:14:27 +08:00
modify compiler parameters
This commit is contained in:
+1
-1
@@ -9,7 +9,7 @@ RUN VERSION=`grep '"version": ' package.json | awk -F ':' '{print $2}' | tr -d '
|
|||||||
&& GOOS=linux \
|
&& GOOS=linux \
|
||||||
&& GOARCH=amd64 \
|
&& GOARCH=amd64 \
|
||||||
&& CGO_ENABLED=1 \
|
&& CGO_ENABLED=1 \
|
||||||
&& go build -a -v -i -trimpath -ldflags "-X main.version=${VERSION} -X main.commitHash=${COMMIT_HASH}" -o lab lab.go
|
&& go build -a -v -i -trimpath -ldflags "-w -linkmode external -extldflags '-static' -X main.version=${VERSION} -X main.commitHash=${COMMIT_HASH}" -o lab lab.go
|
||||||
RUN chmod +x lab
|
RUN chmod +x lab
|
||||||
|
|
||||||
# Build frontend files
|
# Build frontend files
|
||||||
|
|||||||
Reference in New Issue
Block a user