Built-from-source container image of the NGINX HTTP server
## Tags ### Docker Hub Available on [Docker Hub](https://hub.docker.com) as [`ricardbejarano/nginx`](https://hub.docker.com/r/ricardbejarano/nginx): - [`1.17.9-glibc`, `1.17.9`, `glibc`, `master`, `latest` *(Dockerfile.glibc)*](https://github.com/ricardbejarano/nginx/blob/master/Dockerfile.glibc) (about `14MB`) - [`1.17.9-musl`, `musl` *(Dockerfile.musl)*](https://github.com/ricardbejarano/nginx/blob/master/Dockerfile.musl) (about `12.3MB`) ### Quay Available on [Quay](https://quay.io) as: - [`quay.io/ricardbejarano/nginx-glibc`](https://quay.io/repository/ricardbejarano/nginx-glibc), tags: [`1.17.9`, `master`, `latest` *(Dockerfile.glibc)*](https://github.com/ricardbejarano/nginx/blob/master/Dockerfile.glibc) (about `14MB`) - [`quay.io/ricardbejarano/nginx-musl`](https://quay.io/repository/ricardbejarano/nginx-musl), tags: [`1.17.9`, `master`, `latest` *(Dockerfile.musl)*](https://github.com/ricardbejarano/nginx/blob/master/Dockerfile.musl) (about `12.3MB`) ## Features * Super tiny (see [Tags](#tags)) * Compiled from source (with binary exploit mitigations) during build time * Built `FROM scratch`, with zero bloat (see [Filesystem](#filesystem)) * Reduced attack surface (no shell, no UNIX tools, no package manager...) * Runs as unprivileged (non-`root`) user ## Configuration ### Volumes - Mount your **configuration** at `/etc/nginx/nginx.conf`. ## Building - To build the `glibc`-based image: `$ docker build -t nginx:glibc -f Dockerfile.glibc .` - To build the `musl`-based image: `$ docker build -t nginx:musl -f Dockerfile.musl .` ## Filesystem ### `glibc` Based on the [glibc](https://www.gnu.org/software/libc/) implementation of `libc`. Dynamically linked. ``` / ├── etc/ │ ├── group │ └── passwd ├── lib/ │ └── x86_64-linux-gnu/ │ ├── libc.so.6 │ ├── libcrypt.so.1 │ ├── libdl.so.2 │ ├── libnss_dns.so.2 │ ├── libnss_files.so.2 │ ├── libpthread.so.0 │ └── libresolv.so.2 ├── lib64/ │ └── ld-linux-x86-64.so.2 ├── nginx └── tmp/ ``` ### `musl` Based on the [musl](https://www.musl-libc.org/) implementation of `libc`. Statically linked. ``` / ├── etc/ │ ├── group │ └── passwd ├── nginx └── tmp/ ``` ## License See [LICENSE](https://github.com/ricardbejarano/nginx/blob/master/LICENSE).