Dockerfile: Install JavaScript libraries for mod_invites using npm
This commit is contained in:
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user