Sign inSign up

kugland/darkhttpd

By kugland

Updated almost 3 years ago

Serve static files with statically-linked darkhttpd.

Image
0

10K+

kugland/darkhttpd repository overview

docker-darkhttpd

darkhttpd version GitHub Workflow Status Docker Image Size (latest by date) License

This image uses darkhttpd to serve static files. This image is built FROM scratch and the darkhttpd binary is statically linked, so as to make the image very small. To use it, just mount your files (preferentially in read-only mode) into /www and, if you like, expose port 80.

Page in GitHub: https://github.com/kugland/docker-darkhttpd

Page in DockerHub: https://hub.docker.com/r/kugland/darkhttpd

Features

  • Image has less than 300kb.
  • Uses mimetype map from nginx.
  • Runs as nobody:nobody (65534:65534).
  • Runs in chroot.
  • Directory listing disabled.
  • Server ID disabled.
  • Hardened binary.

Example docker-compose.yml

version: '3.8'

services:
  www:
    image: kugland/darkhttpd:latest
    volumes:
      - "./www:/www:ro"
    ports:
      - "127.0.0.1:8000:80"

Credits

This image was created by André Kugland.

Tag summary

Content type

Image

Digest

sha256:fbd7cbd47

Size

228.1 kB

Last updated

almost 3 years ago

docker pull kugland/darkhttpd