Skip to content

Commit

Permalink
fix nodejs installation for dev image
Browse files Browse the repository at this point in the history
  • Loading branch information
imomaliev committed Aug 29, 2022
1 parent 7967e4b commit 722f0b2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,10 @@ RUN git --version && \

WORKDIR /node
ARG NODE_VERSION
RUN curl -o nodejs.deb "https://deb.nodesource.com/node_${NODE_VERSION%%.*}.x/pool/main/n/nodejs/nodejs_${NODE_VERSION}-1nodesource1_amd64.deb" && \
# https://github.com/nodesource/distributions/blob/master/README.md#installation-instructions
RUN curl -fsSL https://deb.nodesource.com/setup_${NODE_VERSION%%.*}.x | bash - && \
apt-get update && \
apt-get install -y --no-install-recommends ./nodejs.deb && \
apt-get install -y --no-install-recommends nodejs npm && \
npm config set user 0 && \
npm config set unsafe-perm true && \
npm i -g npm && \
Expand Down

0 comments on commit 722f0b2

Please sign in to comment.