Try to staticly build godoor

This commit is contained in:
Arti Zirk 2023-08-10 20:08:23 +03:00
parent e03bf19427
commit 8fde62955d

View File

@ -2,11 +2,14 @@
all: build all: build
GOBUILDLDFLAGS="-X main.Version=`git describe --dirty`"
#GOBUILDLDFLAGS="-X main.Version=`git describe --dirty` -linkmode 'external' -extldflags '-static'"
build: build:
go build -ldflags="-X main.Version=`git describe --dirty`" . go build -tags netgo -ldflags=${GOBUILDLDFLAGS} .
build_arm64: build_arm64:
GOOS=linux GOARCH=arm64 go build -ldflags="-X main.Version=`git describe --dirty`" . GOOS=linux GOARCH=arm64 go build -tags netgo -ldflags=${GOBUILDLDFLAGS} .
dev: build_arm64 dev: build_arm64
scp godoor workshopdoor:/tmp/ scp godoor workshopdoor:/tmp/