From ca3af079ff0120128a260ee1e04eedeb743b098c Mon Sep 17 00:00:00 2001 From: Ricard Bejarano Date: Mon, 18 Mar 2019 16:38:20 +0100 Subject: [PATCH] added build instructions --- README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/README.md b/README.md index b61aaa9..672dab7 100644 --- a/README.md +++ b/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...) +## 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: