GoogleCloudPlatform / GoogleCloudPlatform/cloud-run-hello
Embed static resources
Open
- Dominant language
- Go
- Stars
- 105
- Forks
- 160
- PR merge metrics
- No merged PRs in 30d
Description
Suggestion: let's use the go package [embed](https://pkg.go.dev/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.
Contributor guide
Assessment
This issue has not been assessed yet.