Skip to content
πŸ›° Built-from-source container image of the Lighttpd HTTP server
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
rootfs
Dockerfile.glibc
Dockerfile.musl
LICENSE
README.md

README.md

lighttpd (container image)

Built-from-source container image of the Lighttpd HTTP server

Tags

Docker Hub

Available on Docker Hub as ricardbejarano/lighttpd:

Quay

Available on Quay as:

Features

  • Super tiny (glibc-based is ~2.94MB and musl-based is ~3.57MB)
  • Compiled from source during build time
  • Built FROM scratch, see Filesystem for an exhaustive list of the image's contents
  • Included lighttpd.conf optimized for secure and performant static file server
  • Reduced attack surface (no shell, no UNIX tools, no package manager...)
  • Built with binary exploit mitigations enabled

Configuration

Volumes

  • Bind your configuration at /etc/lighttpd/lighttpd.conf.

Building

  • To build the glibc-based image: $ docker build -t lighttpd:glibc -f Dockerfile.glibc .
  • To build the musl-based image: $ docker build -t lighttpd:musl -f Dockerfile.musl .

Filesystem

The images' contents are:

glibc

Based on the glibc implementation of libc. Dynamically linked.

/
β”œβ”€β”€ etc/
β”‚   β”œβ”€β”€ group
β”‚   β”œβ”€β”€ lighttpd/
β”‚   β”‚   β”œβ”€β”€ html/
β”‚   β”‚   β”‚   └── index.html
β”‚   β”‚   └── lighttpd.conf
β”‚   └── passwd
β”œβ”€β”€ lib/
β”‚   └── x86_64-linux-gnu/
β”‚       β”œβ”€β”€ libc.so.6
β”‚       β”œβ”€β”€ libdl.so.2
β”‚       β”œβ”€β”€ libnss_files.so.2
β”‚       └── libpcre.so.1
β”œβ”€β”€ lib64/
β”‚   └── ld-linux-x86-64.so.2
β”œβ”€β”€ lighttpd
β”œβ”€β”€ tmp/
β”‚   └── .keep
└── usr/
    └── local/
        └── lib/
            β”œβ”€β”€ mod_dirlisting.so
            β”œβ”€β”€ mod_indexfile.so
            └── mod_staticfile.so

musl

Based on the musl implementation of libc. Dynamically linked.

/
β”œβ”€β”€ etc/
β”‚   β”œβ”€β”€ group
β”‚   β”œβ”€β”€ lighttpd/
β”‚   β”‚   β”œβ”€β”€ html/
β”‚   β”‚   β”‚   └── index.html
β”‚   β”‚   └── lighttpd.conf
β”‚   └── passwd
β”œβ”€β”€ lib/
β”‚   β”œβ”€β”€ ld-musl-x86_64.so.1
β”‚   β”œβ”€β”€ libc.musl-x86_64.so.1
β”‚   β”œβ”€β”€ libpcre.so.1
β”‚   └── libz.so.1.2.11
β”œβ”€β”€ lighttpd
β”œβ”€β”€ tmp/
β”‚   └── .keep
└── usr/
    └── local/
        └── lib/
            β”œβ”€β”€ mod_dirlisting.so
            β”œβ”€β”€ mod_indexfile.so
            └── mod_staticfile.so

License

See LICENSE.

You can’t perform that action at this time.