Skip to content

Commit

Permalink
Moving to newer ubuntu and nodejs
Browse files Browse the repository at this point in the history
  • Loading branch information
terafin committed Oct 6, 2024
1 parent 1002199 commit 96086c9
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

0 comments on commit 96086c9

Please sign in to comment.