diff --git a/Dockerfile b/Dockerfile index 723dbbc2b..6396db766 100644 --- a/Dockerfile +++ b/Dockerfile @@ -58,8 +58,8 @@ RUN DEBIAN_FRONTEND=noninteractive \ && apt clean \ && rm -rf /var/lib/apt/lists/* -# Latest NPM (taken from https://deb.nodesource.com/setup_8.x ) -RUN curl -sSL https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - +# Note: Node.js 14 is installed directly from nodejs.org binaries below (not via apt) +# because NodeSource deprecated the Node 14 repository after EOL (April 2023) RUN curl -sSL https://dl.google.com/linux/linux_signing_key.pub | apt-key add - RUN curl -sSL https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - RUN curl -sSL https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add - @@ -71,8 +71,7 @@ RUN echo "deb http://apt.postgresql.org/pub/repos/apt/ `lsb_release -cs`-pgdg ma RUN echo "deb https://nginx.org/packages/ubuntu/ jammy nginx" > /etc/apt/sources.list.d/nginx.list -RUN echo "deb https://deb.nodesource.com/node_14.x jammy main" > /etc/apt/sources.list.d/nodesource.list -RUN echo "deb-src https://deb.nodesource.com/node_14.x jammy main" >> /etc/apt/sources.list.d/nodesource.list +# NodeSource repo removed - Node 14 installed from official binaries below RUN echo "deb http://packages.cloud.google.com/apt cloud-sdk main" > /etc/apt/sources.list.d/google-cloud-sdk.list RUN echo "deb [arch=${TARGETARCH}] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" > /etc/apt/sources.list.d/docker.list @@ -110,7 +109,6 @@ RUN DEBIAN_FRONTEND=noninteractive \ postgresql-client-13 \ postgresql-contrib-13 \ git-restore-mtime \ - nodejs \ libgbm1 \ google-cloud-sdk \ google-cloud-sdk-pubsub-emulator \ @@ -178,6 +176,27 @@ ENV LANGUAGE=en_US.UTF-8 ENV LANG=en_US.UTF-8 ENV LC_ALL=en_US.UTF-8 +############################ +# Node.js 14 (installed from official binaries since NodeSource deprecated Node 14) +############################ +RUN <