A really small static web server for Docker
LICENSE | ||
main.go | ||
Makefile | ||
README.md |
goStatic
A really small static web server for Docker
The goal
My goal is to create to smallest docker container for my web static files. The advantage of Go is that you can generate a fully static binary, so that you don't need anything else.
Why?
Because the official Golang image is wayyyy to big. (around 1/2Gb as you can see below)
For me, the whole point of containers is to have a light container... Many links should provide you with additionnal info to see my point of view:
- Create The Smallest Possible Docker Container
- Building Docker Images for Static Go Binaries
- Small Docker Images For Go Apps
What are you using?
I'm using echo as a micro web framework because he has great performance, and golang-builder to generate the static binary.