added build instructions
This commit is contained in:
parent
77047757b3
commit
ca3af079ff
1 changed files with 19 additions and 0 deletions
19
README.md
19
README.md
|
@ -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...)
|
* 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
|
## Filesystem
|
||||||
|
|
||||||
The images' contents are:
|
The images' contents are:
|
||||||
|
|
Loading…
Add table
Reference in a new issue