Try to staticly build godoor
This commit is contained in:
parent
e03bf19427
commit
8fde62955d
7
Makefile
7
Makefile
@ -2,11 +2,14 @@
|
||||
|
||||
all: build
|
||||
|
||||
GOBUILDLDFLAGS="-X main.Version=`git describe --dirty`"
|
||||
#GOBUILDLDFLAGS="-X main.Version=`git describe --dirty` -linkmode 'external' -extldflags '-static'"
|
||||
|
||||
build:
|
||||
go build -ldflags="-X main.Version=`git describe --dirty`" .
|
||||
go build -tags netgo -ldflags=${GOBUILDLDFLAGS} .
|
||||
|
||||
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
|
||||
scp godoor workshopdoor:/tmp/
|
||||
|
Loading…
Reference in New Issue
Block a user