summaryrefslogtreecommitdiff
path: root/src/qbuild/docker/compile.sh
blob: 0c85124f4729247dc78d401fcb772f5c411b3c1f (plain)
1
2
3
4
5
6
7
8
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"