项目作者: kugland

项目描述 :
Serve static files with statically-linked darkhttpd.
高级语言: Dockerfile
项目地址: git://github.com/kugland/docker-darkhttpd.git
创建时间: 2021-04-24T19:39:54Z
项目社区:https://github.com/kugland/docker-darkhttpd

开源协议:MIT License

下载


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

  1. version: '3.8'
  2. services:
  3. www:
  4. image: kugland/darkhttpd:latest
  5. volumes:
  6. - "./www:/www:ro"
  7. ports:
  8. - "127.0.0.1:8000:80"

Credits

This image was created by André Kugland.