/plushcap/analysis/hasura/the-ultimate-guide-to-writing-dockerfiles-for-go-web-apps-336efad7012c

The Ultimate Guide to Writing Dockerfiles for Go Web-apps

What's this blog post about?

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.

Company
Hasura

Date published
Feb. 5, 2018

Author(s)
Shahidh K Muhammed

Word count
1357

Hacker News points
None found.

Language
English


By Matt Makai. 2021-2024.