diff --git a/Dockerfile b/Dockerfile index 4800a801db..690d185b18 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,6 +25,7 @@ RUN apk update && apk upgrade && apk add --update --no-cache \ postgresql-client \ tzdata \ vim && rm -rf /var/cache/apk/* +# The ruby alpine image's apk doesn't have the current version of node RUN apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/main/ nodejs=22.11.0-r0 npm WORKDIR $RAILS_ROOT diff --git a/README.md b/README.md index 5d6590fc86..deda4be55b 100644 --- a/README.md +++ b/README.md @@ -107,7 +107,7 @@ The complete [role description of a CASA volunteer](https://pgcasa.org/volunteer **node.js** 1. (Recommended) Install [nvm](https://github.com/nvm-sh/nvm#installing-and-updating), which is a **n**ode **v**ersion **m**anager. - - If you use asdf, the node version from `.tool-versions` will be used, but may be out of sync with the codename version (lts/iron) in `.nvmrc`. To use the version from `.nvmrc`, see one of these options: [legacy file codename support](https://github.com/asdf-vm/asdf-nodejs?tab=readme-ov-file#partial-and-codename-versions) or [installing via custom script](https://github.com/asdf-vm/asdf-nodejs/issues/382#issuecomment-2258647554). + - If you use asdf, the node version from `.tool-versions` will be used, but may be out of sync with the codename version in `.nvmrc`. To use the version from `.nvmrc`, see one of these options: [legacy file codename support](https://github.com/asdf-vm/asdf-nodejs?tab=readme-ov-file#partial-and-codename-versions) or [installing via custom script](https://github.com/asdf-vm/asdf-nodejs/issues/382#issuecomment-2258647554). 1. Install a current LTS version of Node. Running `nvm install` from this directory will read the `.nvmrc` file to install the correct version. 1. Install [yarn](https://classic.yarnpkg.com/en/docs/install). On Ubuntu, [make sure you install it from the official Yarn repo instead of cmdtest](https://classic.yarnpkg.com/en/docs/install/#debian-stable).