Skip to content

Commit

Permalink
Dockerfile: replace Node.js installation script
Browse files Browse the repository at this point in the history
* Previous installation script was deprecated and now inactive.
  • Loading branch information
GraemeWatt committed Nov 1, 2023
1 parent 52ef9a0 commit 5152a5c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,12 @@ CMD [ "--version" ]
ARG APP_ENVIRONMENT
ARG SAUCE_OS

RUN curl -sL https://deb.nodesource.com/setup_18.x | bash -
RUN apt-get update
RUN apt-get install -y nodejs
# https://github.com/nodesource/distributions#deb
ENV NODE_MAJOR=18
RUN curl -SLO https://deb.nodesource.com/nsolid_setup_deb.sh
RUN chmod 500 nsolid_setup_deb.sh
RUN ./nsolid_setup_deb.sh ${NODE_MAJOR}
RUN apt-get install nodejs -y

WORKDIR /code

Expand Down

0 comments on commit 5152a5c

Please sign in to comment.