embed homepage in a Go app #33

Merged
wanderer merged 1 commits from feature-embedded into master 2022-08-08 15:20:54 +02:00

1 Commits

Author SHA1 Message Date
surtur 573c9da829
embed homepage in a Go app
All checks were successful
continuous-integration/drone/pr Build is passing
the entire './public' folder that Hugo produces is embedded into a
variable of 'embed.FS' type and served directly using the default http
mux that Go std offers.

ci, pre-commit, Dockerfile and compose file have all been updated
accordingly.

nginx is no longer needed to front the site files, which enabled
switching to a SCRATCH image containing just a single statically linked
"homepage" app that has all files (html, css, js) embedded.
the containers are otherwise empty (as the name SCRATCH suggests), which
further decreases potential attack surface area.
2022-08-08 14:54:30 +02:00