1
0
mirror of https://github.com/prometheus-community/postgres_exporter.git synced 2025-11-23 23:02:58 +03:00
Files
postgres_exporter/docker-build.bsh
Will Rouesnel 054d825c7d Vendor all dependencies, add docker build to makefile.
Vendor and store all dependencies. This allows us to have a makefile which
builds to a minimized docker image.
2016-03-12 21:16:17 +11:00

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