From 77018ef7cf6e799484071176652a2064222e1d2d Mon Sep 17 00:00:00 2001 From: Antoine Roy-Gobeil Date: Fri, 26 Feb 2021 17:23:51 -0500 Subject: [PATCH 1/2] Manually bundle in MathJax 2.7.5 in Docker image --- deployment/Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deployment/Dockerfile b/deployment/Dockerfile index c18c72e..d9d084a 100644 --- a/deployment/Dockerfile +++ b/deployment/Dockerfile @@ -80,10 +80,10 @@ RUN apt-get update -y && \ fc-cache -fv && apt-get --auto-remove -y remove subversion #################### -# Download mathjax (same version as plotly.js extras/) +# Download mathjax 2.7.5 -RUN curl -L https://github.com/plotly/plotly.js/archive/master.tar.gz \ - | tar -xvzf - --strip-components=3 plotly.js-master/dist/extras/mathjax +RUN mkdir /mathjax && cd /mathjax && curl -L https://github.com/mathjax/MathJax/archive/2.7.5.tar.gz \ + | tar -xvzf - --strip-components=1 #################### # Install and configure monit From edba903d9fb7b5dc8d06ba806c80c3fb948e4caf Mon Sep 17 00:00:00 2001 From: Antoine Roy-Gobeil Date: Fri, 26 Feb 2021 18:48:43 -0500 Subject: [PATCH 2/2] Get MathJax from npm --- deployment/Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/deployment/Dockerfile b/deployment/Dockerfile index d9d084a..336d41b 100644 --- a/deployment/Dockerfile +++ b/deployment/Dockerfile @@ -82,8 +82,7 @@ RUN apt-get update -y && \ #################### # Download mathjax 2.7.5 -RUN mkdir /mathjax && cd /mathjax && curl -L https://github.com/mathjax/MathJax/archive/2.7.5.tar.gz \ - | tar -xvzf - --strip-components=1 +RUN cd / && npm install mathjax@2.7.5 && mv node_modules/mathjax / && rm -rf /node_modules #################### # Install and configure monit