summaryrefslogtreecommitdiffhomepage
path: root/pkg/docker/template.Dockerfile
diff options
context:
space:
mode:
authorKonstantin Pavlov <thresh@nginx.com>2023-08-22 14:55:10 -0700
committerKonstantin Pavlov <thresh@nginx.com>2023-08-22 14:55:10 -0700
commite516d918ed47f456e38a44bdd1cf00fe862e1d85 (patch)
tree3ba3aee82a17f76f6327de8369701f57837f9196 /pkg/docker/template.Dockerfile
parentffc6e6b08f4c5a6558f0cc85e597f9d7ae17701a (diff)
downloadunit-e516d918ed47f456e38a44bdd1cf00fe862e1d85.tar.gz
unit-e516d918ed47f456e38a44bdd1cf00fe862e1d85.tar.bz2
Docker: introduced a "module prebuild" step.
It's now used to install node-gyp on nodejs images. Starting from node:20, they no longer ship node-gyp that we require to build the modules with, so we need to install it manually. Fixes https://github.com/nginx/unit/issues/908.
Diffstat (limited to '')
-rw-r--r--pkg/docker/template.Dockerfile1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/docker/template.Dockerfile b/pkg/docker/template.Dockerfile
index b7c558a8..cac0ae85 100644
--- a/pkg/docker/template.Dockerfile
+++ b/pkg/docker/template.Dockerfile
@@ -43,6 +43,7 @@ RUN set -ex \
&& make -j $NCPU unitd \
&& install -pm755 build/sbin/unitd /usr/sbin/unitd \
&& make clean \
+ && @@MODULE_PREBUILD@@ \
&& ./configure $CONFIGURE_ARGS_MODULES --cc-opt="$CC_OPT" --modulesdir=/usr/lib/unit/debug-modules --debug \
&& ./configure @@CONFIGURE@@ \
&& make -j $NCPU @@INSTALL@@ \