Sign inSign up

gasbugs/http-go

By gasbugs

Updated 6 months ago

Lightweight, multi-architecture Go HTTP service optimized for containers.

Image
Web servers
2

50K+

gasbugs/http-go repository overview

http-go

A minimal, production-ready Go HTTP service container. Designed for testing, demonstration, and boilerplate usage in Kubernetes and other container orchestration platforms.

✨ Features

  • Dynamic Response: Returns a built-in JSON payload containing the container's hostname and a dynamically injected version tag.
  • Graceful Shutdown: Safely handles SIGINT and SIGTERM signals with a configurable 10-second timeout.
  • Multi-Architecture Support: Natively cross-compiled and built for both linux/amd64 and linux/arm64.
  • Built-in Debugging Tools: Includes curl and ps (procps) out of the box for quick network and process troubleshooting inside the shell.
  • Non-root Execution: Secured by default, running under a non-root user (USER 1000).

🚀 Usage

1. Run the Container

You can expose the service on port 8080:

docker run --rm -p 8080:8080 gasbugs/http-go:latest

Tag summary

Content type

Image

Digest

sha256:b0476aadf

Size

31.4 MB

Last updated

6 months ago

docker pull gasbugs/http-go