Build lightweight Docker image
Docker now offers multi-stage builds for generating images with lower memory footprint. The idea is to compile DORiE and then move only its binaries to another very small container (derived from the
alpine image, for example). This requires the executables to be compiled as static binaries.
The Docker image should be automatically compiled from certain pushed branches (like
master), but only if tests succeed. This means to open up the
deploy stage in the of CI/CD. The image has to be compiled and some tests have to be performed with it (I guess?). The image is then deployed to Docker Hub.