From 2b5ce90dc9ac2814d6e8ee5322d3e18b42ad008f Mon Sep 17 00:00:00 2001 From: Shohei Ueda <30958501+peaceiris@users.noreply.github.com> Date: Tue, 28 Jul 2020 23:28:25 +0900 Subject: [PATCH] ci: reuse NODE_VERSION in nodesource URL (#430) --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index da705e2b9..8b0290b74 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 && \