Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
ci: reuse NODE_VERSION in nodesource URL (#430)
  • Loading branch information
Shohei Ueda authored and GitHub committed Jul 28, 2020
1 parent 681dcab commit 2b5ce90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Expand Up @@ -19,7 +19,7 @@ RUN apt-get update && \

WORKDIR /node
ARG NODE_VERSION
RUN curl -o nodejs.deb "https://deb.nodesource.com/node_12.x/pool/main/n/nodejs/nodejs_${NODE_VERSION}-1nodesource1_amd64.deb" && \
RUN curl -o nodejs.deb "https://deb.nodesource.com/node_${NODE_VERSION%%.*}.x/pool/main/n/nodejs/nodejs_${NODE_VERSION}-1nodesource1_amd64.deb" && \
apt-get update && \
apt-get install -y --no-install-recommends ./nodejs.deb && \
npm i -g npm && \
Expand Down

0 comments on commit 2b5ce90

Please sign in to comment.