You've already forked postgres_exporter
mirror of
https://github.com/prometheus-community/postgres_exporter.git
synced 2025-11-23 23:02:58 +03:00
Vendor and store all dependencies. This allows us to have a makefile which builds to a minimized docker image.
5 lines
114 B
Bash
Executable File
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
|