Home / Companies / Hasura / Blog / Post Details
Content Deep Dive

The Ultimate Guide to Writing Dockerfiles for Go Web-apps

Blog post from Hasura

Post Details
Company
Date Published
Author
Shahidh K Muhammed
Word Count
1,357
Language
English
Hacker News Points
-
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.