GoogleCloudPlatform / GoogleCloudPlatform/cloud-run-hello

Embed static resources

Open
#99 1 comment 1 reaction 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.