From a7a11ef2878c038cd06c42b25ef5255b6ff7b0d4 Mon Sep 17 00:00:00 2001 From: Badlop Date: Tue, 30 Dec 2025 17:21:52 +0100 Subject: [PATCH] Dockerfile: Install JavaScript libraries for mod_invites using npm --- .github/container/Dockerfile | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/container/Dockerfile b/.github/container/Dockerfile index 92bc51980..383e9cd0b 100644 --- a/.github/container/Dockerfile +++ b/.github/container/Dockerfile @@ -19,6 +19,7 @@ RUN go install -v \ FROM docker.io/erlang:${OTP_VSN}-alpine AS ejabberd RUN apk -U add --no-cache \ + nodejs npm ca-certificates \ autoconf \ automake \ bash \ @@ -52,6 +53,16 @@ ARG BUILD_DIR COPY / $BUILD_DIR/ WORKDIR $BUILD_DIR + +RUN npm init -y \ + && npm install --silent jquery@3.6.4 bootstrap@4.6.2 \ + && mkdir -p /rootfs/usr/share/javascript/bootstrap4/css \ + && mkdir -p /rootfs/usr/share/javascript/bootstrap4/js \ + && mkdir -p /rootfs/usr/share/javascript/jquery/ \ + && cp -r node_modules/bootstrap/dist/css/bootstrap.min* /rootfs/usr/share/javascript/bootstrap4/css \ + && cp -r node_modules/bootstrap/dist/js/bootstrap.min* /rootfs/usr/share/javascript/bootstrap4/js \ + && cp -r node_modules/jquery/dist/jquery.min* /rootfs/usr/share/javascript/jquery/ + RUN mv .github/container/ejabberdctl.template . \ && mv .github/container/ejabberd.yml.example . \ && ./autogen.sh \