Dockerizing Go on a Diet

Matt Steele

Here's a dumb thing

GitHub Actions

Gotta go fast

First attempt: Bash + curl

6 minutes

I hear Go is fast

First attempt: 90 seconds
Docker container size: 810MB

Multi Stage Builds

Down to 7.2 MB

Optimize binary for Docker

Down to 5.3 MB
Down to 30ish seconds
Result = faster candy