rackspace / rack

A CLI for Rackspace (unmaintained)
Other
81 stars 57 forks source link

Statically link the rack binary #381

Closed etoews closed 8 years ago

etoews commented 8 years ago

To make rack as independent/portable as possible, the binary should be statically linked on build.

I discovered this while attempting to get rack to run on Alpine Linux in Installed Go binary not found in path on Alpine Linux Docker.

There are a number of good posts on this out there at Building Minimal Docker Containers for Go Applications, Building Docker Images for Static Go Binaries, etc.

elwinar commented 8 years ago

I stumbled upon the SO thread, and just want to add an alternative solution for packages that use CGO bindings (like the SQLite one) : https://www.elwinar.com/articles/statically-link-golang-binaries