Allow Dockerfile --build-args to override GOOS and GOARCH defaults
Support building multi architecture binaries
remove default OS and ARCH to avoid tag confusion when compiling image through Makefile
Tag image with corrosponding OS and ARCH build variables
updating Makefile
Signed-off-by: Michael Fornaro <20387402+xUnholy@users.noreply.github.com>
* Enables module-mode in Docker to fix build
* Statically compile binary in Docker to fix missing dependency errors
* Ensure target OS is set to Linux for Docker builds
Use debian/distroless (glibc) as a base which in general gives
slightly higher performance than alpine (musl) while trading
off container size (about 10mb).
The build phase makes the assumption that any capnproto-files
are pre-processed before building in-docker.