diff options
author | Wolfy-J <[email protected]> | 2019-01-11 16:25:14 +0300 |
---|---|---|
committer | Wolfy-J <[email protected]> | 2019-01-11 16:25:14 +0300 |
commit | 59b0b8349c09d13bae256eac71ae678209db3668 (patch) | |
tree | 0c09431f4884f939daab705160e8a97e6ece0ee9 /qbuild/docker/compile.sh | |
parent | a50c990c2b46723a8d5811170d42129ab26ff219 (diff) |
quickbuilds
Diffstat (limited to 'qbuild/docker/compile.sh')
-rw-r--r-- | qbuild/docker/compile.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/qbuild/docker/compile.sh b/qbuild/docker/compile.sh new file mode 100644 index 00000000..0c85124f --- /dev/null +++ b/qbuild/docker/compile.sh @@ -0,0 +1,9 @@ +#!/bin/bash +LDFLAGS="$LDFLAGS -X github.com/spiral/roadrunner/cmd/rr/cmd.Version=${RR_VERSION}" +LDFLAGS="$LDFLAGS -X github.com/spiral/roadrunner/cmd/rr/cmd.BuildTime=$(date +%FT%T%z)" + +# Verify all external modules +go mod init + +# Build the binary +CGO_ENABLED=0 go build -v -ldflags "$LDFLAGS -extldflags '-static'" -o "rr"
\ No newline at end of file |