postgres_exporter/docker-build.bsh

5 lines
114 B
Bash
Executable File

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