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"]