Skip to content

Commit 4d700b9

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

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

modules/Dockerfile.alpine

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

34
ARG ENABLED_MODULES
45

@@ -60,7 +61,7 @@ RUN set -ex \
6061
done \
6162
&& echo "BUILT_MODULES=\"$BUILT_MODULES\"" > /tmp/packages/modules.env
6263

63-
FROM nginx:mainline-alpine
64+
FROM nginx:${NGINX_VERSION_FROM}-alpine
6465
COPY --from=builder /tmp/packages /tmp/packages
6566
RUN set -ex \
6667
&& . /tmp/packages/modules.env \

0 commit comments

Comments
 (0)