by ek5Jf · 9y ago · 0 comments
Works great with Haskell statically compiled binaries. Running the binary through UPX i've managed to get small HTTP microservices down to a 2MB docker image with just Scratch.
Edit: I really should have read the article first. It uses Go binaries as the example. Good to know Haskell folks are also using it.
See https://medium.com/@lizrice/non-privileged-containers-based-...
https://docs.docker.com/engine/reference/builder/#user
You can use `setcap` to grant capabilities to the binary or the `pam_cap` module if you need to do capabilities per user.
I haven't run across the need to run most containers as root for a while now.