Find a file
2019-02-20 08:35:08 +01:00
glibc added rootfs/etc/nginx/html, moved to glibc/ 2019-02-20 08:22:25 +01:00
musl added musl-based image 2019-02-20 08:35:08 +01:00
rootfs added rootfs/etc/nginx/html, moved to glibc/ 2019-02-20 08:22:25 +01:00
LICENSE updated copyright year 2019-02-02 17:02:49 +01:00
README.md added musl-based image 2019-02-20 08:35:08 +01:00

nginx (Docker image)

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

Available at ricardbejarano/nginx.

1.15.8-glibc, 1.15.8, glibc, latest (glibc/Dockerfile) 1.15.8-musl, musl (glibc/Dockerfile)

Features

  • Super tiny (:glibc is 16.4MB and :musl is 15.6MB)
  • Built from source, including libraries
  • Based on scratch, see the Filesystem section below for an exhaustive list of the image's contents
  • Included TLS1.3 protocol support (with OpenSSL)
  • Included brotli compression support (with ngx_brotli)
  • Reduced attack surface (no bash, no UNIX tools, no package manager...)

Filesystem

The images' contents are:

glibc

Based on the glibc implementation of libc.

/
├── etc/
│   ├── group
│   ├── nginx/
│   │   ├── html/
│   │   │   ├── 50x.html
│   │   │   └── index.html
│   │   ├── mime.types
│   │   └── nginx.conf
│   └── passwd
├── lib/
│   └── x86_64-linux-gnu/
│       ├── ld-linux-x86-64.so.2
│       ├── libc.so.6
│       ├── libnss_files.so.2
│       ├── libnss_dns.so.2
│       └── libresolv.so.2
├── nginx
└── tmp/

musl

Based on the musl implementation of libc.

/
├── etc/
│   ├── group
│   ├── nginx/
│   │   ├── html/
│   │   │   ├── 50x.html
│   │   │   └── index.html
│   │   ├── mime.types
│   │   └── nginx.conf
│   └── passwd
├── lib/
│   ├── ld-musl-x86_64.so.1
│   └── libssl.so.1.1
├── nginx
└── tmp/
    └── .keep

License

See LICENSE.