first commit
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
BINARY="${BINARY:-gateway}"
|
||||
ENTRYPOINT="${ENTRYPOINT:-./main.go}"
|
||||
LDFLAGS="${LDFLAGS:--w -s}"
|
||||
GOOS="${GOOS:-linux}"
|
||||
|
||||
echo "=> Building ${BINARY} (CGO_ENABLED=0 GOOS=${GOOS})"
|
||||
|
||||
CGO_ENABLED=0 GOOS="${GOOS}" go build \
|
||||
-ldflags="${LDFLAGS}" \
|
||||
-o "${BINARY}" \
|
||||
"${ENTRYPOINT}"
|
||||
|
||||
echo "=> Done: ${BINARY}"
|
||||
Reference in New Issue
Block a user