Skip to content

Commit 46a0d48

Browse files
rptmat57thresheek
authored andcommitted
Update Dockerfile to work with other version of nginx
1 parent 4d700b9 commit 46a0d48

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

modules/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
FROM nginx:mainline as builder
1+
ARG NGINX_VERSION_FROM=mainline
2+
FROM nginx:${NGINX_VERSION_FROM} as builder
23

34
ARG ENABLED_MODULES
45

@@ -68,7 +69,7 @@ RUN set -ex \
6869
done \
6970
&& echo "BUILT_MODULES=\"$BUILT_MODULES\"" > /tmp/packages/modules.env
7071

71-
FROM nginx:mainline
72+
FROM nginx:${NGINX_VERSION_FROM}
7273
COPY --from=builder /tmp/packages /tmp/packages
7374
RUN set -ex \
7475
&& apt update \

0 commit comments

Comments
 (0)