Skip to content

Commit 1207c58

Browse files
committed
fix: use nginx version reported by binary instead of env var
By using the version reported by NGINX rather than the environment variable it allows for a more reliable setting and less complexity. Signed-off-by: Elijah Zupancic <[email protected]>
1 parent d53ee83 commit 1207c58

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Dockerfile.latest-njs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ FROM nginx-s3-gateway
88
# provided by the inherited container images and we do not want to mess with
99
# them.
1010
RUN set -eux \
11-
export DEBIAN_FRONTEND=noninteractive; \
11+
export DEBIAN_FRONTEND=noninteractive; \
12+
export NGINX_VERSION="$(nginx -V 2>&1 | grep 'nginx version' | awk -F'[/ ]' '{print $4}')"; \
1213
apt-get update -qq; \
1314
apt-get install --no-install-recommends --no-install-suggests --yes --allow-change-held-packages \
1415
make gcc libc6-dev curl expect libpcre2-dev \

0 commit comments

Comments
 (0)