Serve Small With Fly.io and GoStatic
Dj Walker-Morgan introduces GoStatic, a small, self-contained web page server that can run in a bare Docker image without an OS layer. This makes it ideal for deploying static websites with minimal costs. The author demonstrates how to use GoStatic on Fly by creating a new project and replacing the example contents of the Dockerfile with two lines: FROM pierrezemb/gostatic and COPY index.html /srv/http/index.html. After deploying, users can access their site via https and custom domains. Additionally, the author suggests scaling down the VM size to micro-1x for cost efficiency.
Company
Fly.io
Date published
July 27, 2020
Author(s)
Dj Walker-Morgan
Word count
857
Language
English
Hacker News points
None found.