]> git.openstreetmap.org Git - rails.git/commitdiff
Use default version of node, but use npm to install yarn
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 31 May 2023 14:46:18 +0000 (15:46 +0100)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 31 May 2023 15:04:37 +0000 (16:04 +0100)
* Node 12 is sufficient for now, and aligns with INSTALL.md and vagrant
* Upstream yarnpkg is completely broken, see
  https://bugs.launchpad.net/ubuntu/+source/node-yarnpkg/+bug/2003697

Refs #4048

Dockerfile

index 78be28838980e2d561641071d48659fd2ac40ddd..c85a6404606d99bd8ef4a416f6eed2a7c6319881 100644 (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 \