Skip to content

Commit 6813921

Browse files
committed
Use latest LTS version of node.js
Avoid problems with npm when installing mathjax-node-cli.
1 parent e1ac3b0 commit 6813921

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.tools/Dockerfile

+5-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ ENV DEBIAN_FRONTEND noninteractive
44
ENV DEBIAN_PRIORITY critical
55

66
RUN apt-get -q --no-allow-insecure-repositories update \
7+
## I hate the `curl ... | bash -` pattern with a passion, but it
8+
## doesn't have to be secure here.
9+
&& DEBIAN_FRONTEND=noninteractive \
10+
apt-get install --assume-yes --no-install-recommends curl \
11+
&& curl -fsSL https://deb.nodesource.com/setup_lts.x | bash - \
712
&& DEBIAN_FRONTEND=noninteractive \
813
apt-get install --assume-yes --no-install-recommends \
914
aspell \
@@ -20,7 +25,6 @@ RUN apt-get -q --no-allow-insecure-repositories update \
2025
luarocks \
2126
make \
2227
nodejs \
23-
npm \
2428
python-is-python3 \
2529
python3 \
2630
python3-matplotlib \

0 commit comments

Comments
 (0)