Company
Date Published
Feb. 5, 2018
Author
Shahidh K Muhammed
Word count
1357
Language
English
Hacker News points
None

Summary

This guide provides a comprehensive tutorial on writing Dockerfiles for Go web applications. It covers various aspects such as packaging as a container, working with different versions of Go, creating reproducible environments, and building and deploying final compiled binaries. The text also discusses live reloading, package management, single-stage production builds, multi-stage production builds, binary compression using UPX, and the use of dep instead of glide for dependency management. Additionally, it introduces a new section on using scratch as the base image instead of alpine to further reduce the size of the final Docker image.