skepticfx / hello-world-container-image

Example container image for running on Cloudflare's container runtime

Repository from Github https://github.comskepticfx/hello-world-container-imageRepository from Github https://github.comskepticfx/hello-world-container-image

Cloudflare Container Example

This repo contains a simple example application which can be run in Cloudflare's container runtime.

The example app serves a single HTML page with an incrementing visit counter and a toggleable health status. The health status can be modified by sending a POST request to /health with the status query parameter set to either healthy or unhealthy. The health status can be queried by sending a GET request to /health: if the application is healthy it will return an empty response with a 200 status code; otherwise, it will send an empty response with a 503 status code.

About

Example container image for running on Cloudflare's container runtime

License:Other


Languages

Language:Go 63.9%Language:HTML 24.7%Language:Dockerfile 11.4%