Further foolproofed the Dockerfile.

This commit is contained in:
Daan 2025-03-23 22:00:02 +01:00
parent 1604764a3b
commit 8448a6add0

View File

@ -13,17 +13,14 @@ COPY ./ /opt/meshcentral/meshcentral/
RUN if [ -z "$DISABLE_MINIFY" ] || [ -z "$DISABLE_TRANSLATE" ]; then \
cd meshcentral && \
npm install html-minifier@4.0.0 jsdom@26.0.0 esprima@4.0.1 && \
\
cd translate && \
node translate.js extractall && \
\
case "$DISABLE_MINIFY" in \
false|no|FALSE|NO) \
node translate.js minifyall;; \
*) \
echo "Setting MINIFY as disabled.";; \
esac \
\
echo "Setting MINIFY as disabled.";; \
esac && \
case "$DISABLE_TRANSLATE" in \
false|no|FALSE|NO) \
node translate.js translateall;; \