A simple Golang HTTP file server with some extras
- Request Logging
- Tracing IDs
- Error Handling
- Health Check
To run, add your files to src/public, then launch:
go run src/main.go
You can also build the application with:
go build src/main.go
To launch GoHTTP with Docker, you can create an image by running:
docker build -t fairbanks-io/gohttp:latest .
Or, pull the latest image from DockerHub:
docker run -d -p 80:8080 --name gohttp fairbanksio/gohttp
If you want to pass in your own content, use a volume mount:
docker run -d -p 80:8080 --name gohttp -v /my/public/dir:/app/public:Z fairbanksio/go-http
A health check endpoint is available on /healthz
- Docker Support
- Scratch Support