Lightweight HTTP server docker image based on GoogleContainerTools distroless and Caddy.
1.5K
Lightweight HTTP server docker image based on GoogleContainerTools distroless and Caddy.
It comes with all the features of Caddy (automatic TLS, easy to setup) and weighs only 11MB.
This image can either be run as is or used as a base image.
The files to be served must be mounted on /www:
docker container run -P -v $(pwd)/www:/www:ro nlepage/distroless-http
A Caddyfile might be used to configure Caddy:
docker container run -P -v $(pwd)/www:/www:ro v $(pwd)/Caddyfile:/Caddyfile:ro nlepage/distroless-http -conf /Caddyfile
Write a Dockerfile:
FROM nlepage/distroless-http
COPY www/ /www
COPY Caddyfile /Caddyfile
CMD ["-conf", "/Caddyfile"]
Content type
Image
Digest
Size
10.5 MB
Last updated
over 7 years ago
docker pull nlepage/distroless-http