always-ok-web-server
Web server that always returns a configurable HTTP status code on a specified port for every path.
10K+
A simple web server that always returns a configurable HTTP status code on a specified port for every path.
The server is configured using environment variables:
PORT: The port on which the server will listen (default: 8080)HTTP_RESPONSE_STATUS_CODE: The HTTP status code to return for all requests (default: 200) docker build -t cateringssoft/always-ok-web-server:local .
# Run with default settings (port 8080, status code 200)
docker run --rm -it -p 80:8080 cateringssoft/always-ok-web-server:local
# Run with custom port and status code
docker run --rm -it -p 80:8888 -e PORT=8888 -e HTTP_RESPONSE_STATUS_CODE=201 cateringssoft/always-ok-web-server:local
Content type
Image
Digest
sha256:f432aaf2f…
Size
5.4 MB
Last updated
11 months ago
docker pull cateringssoft/always-ok-web-server:v0.0.1