Sign inSign up

nlepage/distroless-http

By nlepage

•Updated over 7 years ago

Lightweight HTTP server docker image based on GoogleContainerTools distroless and Caddy.

Image
0

1.5K

nlepage/distroless-http repository overview

⁠Distroless HTTP server

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.

⁠Usage

This image can either be run as is or used as a base image.

⁠Running

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
⁠Building from

Write a Dockerfile:

FROM nlepage/distroless-http

COPY www/ /www

COPY Caddyfile /Caddyfile

CMD ["-conf", "/Caddyfile"]

Tag summary

Content type

Image

Digest

Size

10.5 MB

Last updated

over 7 years ago

docker pull nlepage/distroless-http