cloud-run-hello icon indicating copy to clipboard operation
cloud-run-hello copied to clipboard

Embed static resources

Open Deleplace opened this issue 1 year ago • 1 comments

Suggestion: let's use the go package embed to produce a self-contained "fat binary" app executable.

Pros:

  • follows modern best practices (since Go 1.16)
  • single file copied into the final docker image
  • minimizes potential attack surface
  • avoids bugs like #98

I can make a PR for this.

Deleplace avatar Jul 26 '24 13:07 Deleplace

This makes sense to me.

grayside avatar Sep 16 '24 16:09 grayside