Use default version of node, but use npm to install yarn

* Node 12 is sufficient for now, and aligns with INSTALL.md and vagrant
* Upstream yarnpkg is completely broken, see
  2003697

Refs #4048
This commit is contained in:
Andy Allan 2023-05-31 15:46:18 +01:00
parent c21c6f8402
commit 27340d65cd

View file

@ -25,11 +25,10 @@ RUN apt-get update \
software-properties-common \
tzdata \
unzip \
&& curl https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - \
&& add-apt-repository -y -U https://deb.nodesource.com/node_18.x \
&& apt-get install --no-install-recommends -y \
nodejs \
npm \
&& npm install --global yarn \
# We can't use snap packages for firefox inside a container, so we need to get firefox+geckodriver elsewhere
&& add-apt-repository -y ppa:mozillateam/ppa \
&& echo "Package: *\nPin: release o=LP-PPA-mozillateam\nPin-Priority: 1001" > /etc/apt/preferences.d/mozilla-firefox \
&& apt-get install --no-install-recommends -y \