From baca764ba7e692a0b167cc18f20d0ca806f2e8b9 Mon Sep 17 00:00:00 2001 From: Bryan Quigley Date: Mon, 25 Sep 2023 18:50:30 -0700 Subject: [PATCH] Switch from deprecated nodejs/npm install to just using the version built-in to debian bookwarm It's nodejs 18.13.0 --- Dockerfile | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8c40f5007..6b4deba7a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,11 +1,8 @@ -FROM ruby:3.2-bullseye +FROM ruby:3.2-bookworm -ENV NODE_MAJOR_VERSION 18 - -RUN curl --silent --show-error --location --retry 5 --retry-connrefuse --retry-delay 4 https://deb.nodesource.com/setup_${NODE_MAJOR_VERSION}.x | bash - \ - && apt-get update \ - && apt-get install -y --quiet --no-install-recommends \ - nodejs +RUN apt-get update \ + && apt-get install -y --quiet --no-install-recommends \ + nodejs npm ENV GEM_HOME=/usr/gem ENV PATH="$GEM_HOME/bin/:$PATH"