postgres_exporter/docker-build.bsh

5 lines
114 B
Plaintext
Raw Normal View History

#!/bin/bash
cd $2
CGO_ENABLED=0 GOOS=linux go build -a -ldflags '-extldflags "-static"' -o $1 . 1>&2
tar -cf - $1