added build instructions

This commit is contained in:
Ricard Bejarano 2019-03-18 16:38:20 +01:00
parent 77047757b3
commit ca3af079ff
No known key found for this signature in database
GPG key ID: 5A5105DD6B91CA19

View file

@ -21,6 +21,25 @@ Available at [`ricardbejarano/nginx`](https://hub.docker.com/r/ricardbejarano/ng
* Reduced attack surface (no `bash`, no UNIX tools, no package manager...)
## Building
To build the `glibc`-based image:
```bash
$ git clone https://github.com/ricardbejarano/nginx
$ cd nginx
$ docker build -t nginx:glibc -f glibc/Dockerfile .
```
To build the `musl`-based image:
```bash
$ git clone https://github.com/ricardbejarano/nginx
$ cd nginx
$ docker build -t nginx:musl -f musl/Dockerfile .
```
## Filesystem
The images' contents are: