From 1218595a7a50074b3f8b66de3065374f29e8ded0 Mon Sep 17 00:00:00 2001 From: Melissa Autumn Date: Mon, 11 Dec 2023 08:32:14 -0800 Subject: [PATCH] Upgrade to node 18 --- frontend/deploy.dockerfile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/frontend/deploy.dockerfile b/frontend/deploy.dockerfile index 5a03bf024..4df65d723 100644 --- a/frontend/deploy.dockerfile +++ b/frontend/deploy.dockerfile @@ -6,9 +6,13 @@ COPY . /build/frontend # Copy over the staging config RUN mv /build/frontend/.env.staging.example /build/frontend/.env.staging -# Add Node 16 support -RUN curl -fsSL https://deb.nodesource.com/setup_16.x | bash - &&\ -apt-get install -y nodejs +# Add Node 18 support +RUN apt-get install -y ca-certificates curl +RUN mkdir -p /etc/apt/keyrings +RUN curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg \ +RUN NODE_MAJOR=18 echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list +RUN apt-get update +RUN apt-get install -y nodejs RUN npm install --global yarn