grim/goserve

initial revision
draft
2019-01-02, Gary Kramlich
ef05d0d82dd9
initial revision
# About
goserve is a dead simple HTTP server whose sole purpose is to serve static
content from a container.
This was built because I was tired of introducing nginx or another web server
into what would be a tiny container only containing the static files
themselves.
# Building
If you're building this yourself, it is recommended to build it statically and
strip the resulting binary with the following command.
```
CGO_ENABLED=0 GOOS=linux go build -a -ldflags '-extldflags "-static" -s' .
```
# Configuration
goserve is configurable via environment variables
* GOSERVE_ROOT the root directory of the files to serve (defaults to html/)
* GOSERVE_ADDR the address it listen on (defaults to :3000)