Sign inSign up

rev9en/busybox-httpd

By rev9en

•Updated 7 months ago

Docker image with Busybox httpd

Image
0

380

rev9en/busybox-httpd repository overview

⁠🐳 Busybox HTTPD Server Docker Image⁠

Build Docker Image License: MIT

This is a bare bones Docker image based on alpine that serves HTTP content using busybox’s⁠ httpd⁠ command.

Put your web content in /var/www/html.

You can override the configuration file in /etc/httpd.conf.

⁠Usage

@docker run -it --rm -d \
    --restart=unless-stopped \
    --hostname "Simple Server" \
    -p 8080:80 \
    -v "<home>/wwwroot:/var/www/html" \
    --health-cmd "echo -e "GET /cgi-bin/healthcheck HTTP/1.0\n\n" | nc localhost 80 | grep "status" | grep "OK" || exit 1" \
    --health-interval 30s --health-timeout 10s --health-retries 3 \
    --name busybox-httpd rev9en/busybox-httpd

After that a regular http server will be available on http://localhost:8080⁠.

⁠Development

  • Build an image: make build
  • Run image locally: make serve

Tag summary

Content type

Image

Digest

sha256:c03dce640…

Size

2.1 MB

Last updated

7 months ago

docker pull rev9en/busybox-httpd