Tag: Golang

  • Golang and Docker Multi-Stage Build MK2

    In my previous post I used Docker multi stage technique to build a Docker container image which only has the golang executable in a tiny Alpine Linux base image. I’ll go further to use the scratch base image which has basically nothing. Here’s the Dockerfile I tested on my own project, I’ve also added comments…

  • Golang and Docker Multi-Stage Build

    I have noticed a common pattern amonst some new utilities such as kubectl, kops and terraform: There’s only 1 single executable file to install, and by ‘install’ it can be put anywhere as long as it’s in $PATH. This was before I learned some Golang but it’s easy to find out that the reason behind…