Closed etoews closed 8 years ago
To make rack as independent/portable as possible, the binary should be statically linked on build.
rack
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.
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
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.