added npm install and removed saslprep dependency.

Daan committed May 18, 2025 at 19:46 UTC 5d47415edbb4e72a6f7a5a1a5577bd0476dc6f62
1 file changed +4 -1
docker/Dockerfile
+4 -1
@@ -30,6 +30,9 @@ RUN if [ -z "$DISABLE_MINIFY" ] || [ -z "$DISABLE_TRANSLATE" ]; then \
30 fi
31 # Possible more updated alternative? @minify-html/node@0.15.0 -> https://www.npmjs.com/package/@minify-html/node
32
33 +RUN cd meshcentral \
34 + && npm uninstall html-minifier jsdom esprima
35 +
36 # cleanup for inter-container copying.
37 RUN rm -rf /opt/meshcentral/meshcentral/docker
38 RUN rm -rf /opt/meshcentral/meshcentral/node_modules
@@ -122,7 +125,7 @@ RUN case "$PREINSTALL_LIBS" in \
125 RUN case "$INCLUDE_MONGODB_TOOLS" in \
126 true|yes|TRUE|YES) \
127 apk add --no-cache mongodb-tools && \
125 - cd meshcentral && npm install mongodb@6.16.0 saslprep@1.0.3 \
128 + cd meshcentral && npm install mongodb@6.16.0 \
129 ;; \
130 false|no|FALSE|NO) \
131 echo "Not including MongoDB Tools.";; \