A small container image with busybox httpd web server.
1.2K
This repo is forked from docker-static-website.
A very same Docker image (~160KB) to run a httpd web server, based on the Busybox httpd static file server.
This image's tag(version) will follow the version of Busybox.
The image is hosted on Docker Hub:
FROM mengzyou/bbhttpd:latest
# Copy your static files
COPY --from=builder --chown=www:www /home/node/app/output /home/www/html
Run the image:
docker container run --rm -it -p 8000:80 mengzyou/bbhttpd:latest
Browser to http://localhost:8000/ .
You can write your httpd.conf file with below functions:
P:/some/old/path:[http://]hostname[:port]/some/new/path
E404:404.html
A:172.20. # Allow addresses from 172.20.0.0/16
A:10.0.0./25 # Allow any address from 10.0.0.0 - 10.0.0.127
A:127.0.0.1 # Allow local loopback connections
D:* # Deny from other IP connections
You can find the documentation for Busybox httpd at source code comments.
Content type
Image
Digest
sha256:d5f4c6c4c…
Size
89.2 kB
Last updated
almost 4 years ago
docker pull mengzyou/bbhttpd