mirror of https://github.com/portainer/portainer
9 lines
200 B
Bash
9 lines
200 B
Bash
|
binary="portainer"
|
||
|
mkdir -p dist
|
||
|
|
||
|
cd 'api/cmd/portainer'
|
||
|
|
||
|
go get -t -d -v ./...
|
||
|
GOOS=$1 GOARCH=$2 CGO_ENABLED=0 go build -a --installsuffix cgo --ldflags '-s'
|
||
|
|
||
|
mv "${binary}" "../../../dist/portainer"
|