docker image: install the latest lts version of nodejs

This commit is contained in:
Leonid Pliushch 2021-11-27 14:33:31 +02:00
parent 1e03f5d94c
commit ee8feaeb36
No known key found for this signature in database
GPG Key ID: 45F2964132545795

View File

@ -129,9 +129,6 @@ PACKAGES+=" lld"
# Needed by wrk.
PACKAGES+=" luajit"
# Needed by gitea.
PACKAGES+=" npm"
# Needed by libduktape (2.5.0 still uses python2 unfortunately)
PACKAGES+=" python-yaml"
@ -236,6 +233,10 @@ curl -L --output /tmp/py2-get-pip.py https://bootstrap.pypa.io/pip/2.7/get-pip.p
$SUDO python2 /tmp/py2-get-pip.py
rm -f /tmp/py2-get-pip.py
# Install Nodejs. Needed by Gitea.
curl -fsSL https://deb.nodesource.com/setup_lts.x | $SUDO bash -
$SUDO apt install -y nodejs
$SUDO locale-gen --purge en_US.UTF-8
echo -e 'LANG="en_US.UTF-8"\nLANGUAGE="en_US:en"\n' | $SUDO tee -a /etc/default/locale