Ask HN: Do I need to containerize my Go service?
I have a Go service (it's a simple CRUD web server) that I want to deploy to one of my Digital Ocean droplets. My idea was to have mainly two things in my droplet: nginx, and a single binary (my Go service). The binary would be built in our CI pipeline.
Now, my colleague says that it would be better to deploy a Docker container (the image would be built in our CI pipeline). We do containerize PHP and Python apps (and I see the value of doing it), but I just don't see the added value of deploying Docker containers for Go apps in production (I think it even introduces a small performance penalty, since the Go binary wouldn't be running "bare metal" in my droplet).
1 comment
[ 2.3 ms ] story [ 10.6 ms ] threadOne minimal Docker option with Go is to use a "distroless" Docker image: https://github.com/GoogleContainerTools/distroless/blob/main...