From 96086c987f3481fe5d583943aa1c391ecd347c93 Mon Sep 17 00:00:00 2001 From: Justin Wood Date: Sun, 6 Oct 2024 12:01:23 -0700 Subject: [PATCH] Moving to newer ubuntu and nodejs --- Dockerfile | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index a711b43..825fc33 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,10 +3,8 @@ FROM ubuntu:jammy RUN mkdir -p /usr/node_app COPY . /usr/node_app WORKDIR /usr/node_app -RUN apt-get update ; apt-get install -fy git python3 make g++ npm curl dirmngr apt-transport-https lsb-release ca-certificates -RUN curl -sL https://deb.nodesource.com/setup_18.x | bash -RUN apt-get update ; apt-get -fy install nodejs - -RUN npm install --production - +RUN apt-get update ; apt-get install -fy git python3 make g++ curl dirmngr apt-transport-https lsb-release ca-certificates +RUN curl -fsSL https://deb.nodesource.com/setup_22.x -o nodesource_setup.sh +RUN bash nodesource_setup.sh +RUN apt-get install -fy nodejs CMD ["npm", "start"]