Skip to content

Commit ce18e42

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 765bbd1 commit ce18e42

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
@@ -4,7 +4,8 @@
44
FROM nginx-s3-gateway
55

66
RUN set -eux \
7-
export DEBIAN_FRONTEND=noninteractive; \
7+
export DEBIAN_FRONTEND=noninteractive; \
8+
export NGINX_VERSION="$(nginx -V 2>&1 | grep 'nginx version' | awk -F'[/ ]' '{print $4}')"; \
89
apt-get update -qq; \
910
apt-get install --no-install-recommends --no-install-suggests --yes make gcc libc6-dev curl expect libpcre2-dev libpcre3-dev libedit-dev libreadline-dev libssl-dev libpcre2-posix3 libxml2-dev libxslt1-dev zlib1g-dev; \
1011
mkdir -p /tmp/nginx /tmp/njs-latest; \

0 commit comments

Comments
 (0)