This project is a companion to punxatawny. It is a simple "hello world" style web service app written in Go.
Dependencies are described via dep in Gopkg.toml
dep ensurego build phil.goWe ran into a few problems getting this app to run in a standard Alpine container.
For the most part, this came down to Alpine uses musl rather than glibc.
Googling found this article
that described statically linking the entire Go app,
then building a Docker image based on the "scratch" container. The file build.sh
in this directory encapsulates building the go app and creating the Docker container.
./build.sh