You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
portainer/build/build_binary.sh

15 lines
237 B

set -x
mkdir -p dist
cd api
# the go get adds 8 seconds
go get -t -d -v ./...
# the build takes 2 seconds
GOOS=$1 GOARCH=$2 CGO_ENABLED=0 go build \
--installsuffix cgo \
--ldflags '-s' \
-o "../dist/portainer" \
./cmd/portainer/