Skip to content

Latest commit

 

History

History
26 lines (16 loc) · 1.2 KB

README.md

File metadata and controls

26 lines (16 loc) · 1.2 KB

Docker NGINX with Modules

This project provides a set of scripts that simplify the process of creating a Docker image of NGINX with desired modules.

This project uses Dockerfiles provided by NGINX maintainers to easily generate NGINX images with modules. It supports both Debian and Alpine base images, as well as both regular NGINX and Unprivileged images.

Usage

To use the script, you need to provide three parameters, either as environment variables or in a .env file:

  1. MODULES_TO_ADD_LIST: A list of modules you want to include, separated by spaces. These modules should be available on pkg-oss.
  2. BASE_NGINX_IMAGE: The NGINX base image to which you want to add the modules. Defaults to the mainline image.
  3. IMAGE_NAME_GENERATED: The name of the generated image.

Here's an example command:

./nginx-alpine.sh

More information