Skip to content

Commit 22e65b3

Browse files
committed
Documented a way to redefined base modules image.
1 parent 00edc58 commit 22e65b3

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

modules/README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ $ docker build --build-arg ENABLED_MODULES="ndk lua" -t my-nginx-with-lua .
1313
This command will attempt to build an image called `my-nginx-with-lua` based on
1414
official nginx docker hub image with two modules: `ndk` and `lua`.
1515
By default, a Debian-based image will be used. If you wish to use Alpine
16-
instead, add `-f Dockerfile.alpine` to the command line.
16+
instead, add `-f Dockerfile.alpine` to the command line. By default, mainline
17+
images are used as a base, but it's possible to specify a different image by
18+
providing `NGINX_FROM_IMAGE` build argument, e.g. `--build-arg
19+
NGINX_FROM_IMAGE=nginx:stable`.
1720

1821
The build script will look for module build definition files on filesystem
1922
directory under the same name as the module (and resulting package) and if

0 commit comments

Comments
 (0)