inspired by https://lipanski.com/posts/smallest-docker-image-static-website
385
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
Content type
Image
Digest
Size
276.3 kB
Last updated
over 4 years ago
docker pull palladius/tiny-thttp-server