diff --git a/nginx/Dockerfile b/nginx/Dockerfile index 98f146a..e963880 100644 --- a/nginx/Dockerfile +++ b/nginx/Dockerfile @@ -59,7 +59,7 @@ RUN set -eux; \ RUN set -eux; \ declare -a modules; \ for module in ${NGINX_DYNAMIC_MODULES}; \ - do; \ + do \ repo=$(awk -F'/' '{print $2}' <<< "${module}"); \ git clone -b master --depth 1 https://github.com/${module}.git; \ modules+=("--add-dynamic-module=../${repo}"); \ diff --git a/nginx/Dockerfile-alpine b/nginx/Dockerfile-alpine index 0437c8d..fa4ef27 100644 --- a/nginx/Dockerfile-alpine +++ b/nginx/Dockerfile-alpine @@ -55,7 +55,7 @@ RUN set -eux; \ RUN set -eux; \ declare -a modules; \ for module in ${NGINX_DYNAMIC_MODULES}; \ - do; \ + do \ repo=$(awk -F'/' '{print $2}' <<< "${module}"); \ git clone -b master --depth 1 https://github.com/${module}.git; \ modules+=("--add-dynamic-module=../${repo}"); \