File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -10,8 +10,8 @@ ARG NGX_BROTLI_COMMIT=a71f9312c2deb28875acc7bacfdd5695a111aa53
1010# https://github.com/google/boringssl
1111# ARG BORINGSSL_COMMIT=fae0964b3d44e94ca2a2d21f86e61dabe683d130
1212
13- # http ://hg. nginx.org /njs / v0 .8.5
14- ARG NJS_COMMIT=a419f9189f55
13+ # https ://github.com/ nginx/njs/releases/tag/0 .8.5
14+ ARG NJS_COMMIT=9d4bf6c60aa60a828609f64d1b5c50f71bb7ef62
1515
1616# https://github.com/openresty/headers-more-nginx-module#installation
1717# we want to have https://github.com/openresty/headers-more-nginx-module/commit/e536bc595d8b490dbc9cf5999ec48fca3f488632
@@ -165,9 +165,12 @@ RUN \
165165
166166RUN \
167167 echo "Cloning and configuring njs ..." \
168- && cd /usr/src \
169- && hg clone --rev ${NJS_COMMIT} http://hg.nginx.org/njs \
168+ && mkdir /usr/src/njs \
170169 && cd /usr/src/njs \
170+ && git init \
171+ && git remote add origin https://github.com/nginx/njs.git \
172+ && git fetch --depth 1 origin ${NJS_COMMIT} \
173+ && git checkout -q FETCH_HEAD \
171174 && ./configure \
172175 && make njs \
173176 && mv /usr/src/njs/build/njs /usr/sbin/njs \
You can’t perform that action at this time.
0 commit comments