diff options
Diffstat (limited to 'src/qbuild/docker/compile.sh')
-rw-r--r-- | src/qbuild/docker/compile.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/qbuild/docker/compile.sh b/src/qbuild/docker/compile.sh new file mode 100644 index 00000000..0c85124f --- /dev/null +++ b/src/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 |