Sign inSign up

palladius/tiny-thttp-server

By palladius

Updated over 4 years ago

inspired by https://lipanski.com/posts/smallest-docker-image-static-website

Image
1

385

palladius/tiny-thttp-server repository overview

Great article!

I'll just add a couple of very minor things (favicon, version, ..)

As per Lipanski code: https://github.com/lipanski/docker-static-website.

You can just override the final command and for instance change port:

FROM palladius/tiny-thttp-server
COPY . .
CMD ["/thttpd", "-D", "-h", "0.0.0.0", "-p", "8080", "-d", "/home/static", "-u", "static", "-l", "-", "-M", "60"]

Note this image has 190kb (!)

docker images | grep palladius/tiny-thttp-server
palladius/tiny-thttp-server                                                    0.2                                                                90bebe350db7   3 minutes ago    190kB

Tag summary

Content type

Image

Digest

Size

276.3 kB

Last updated

over 4 years ago

docker pull palladius/tiny-thttp-server