From 45482cab06a4f8adfe052eded188bbe50ffc0ce1 Mon Sep 17 00:00:00 2001 From: Miao Wang Date: Fri, 25 Jun 2021 16:30:24 +0800 Subject: [PATCH] docker img: use lts nodejs make uglifyjs works faster Signed-off-by: Miao Wang --- Dockerfile.build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile.build b/Dockerfile.build index 69fef84..b77e94b 100644 --- a/Dockerfile.build +++ b/Dockerfile.build @@ -3,7 +3,8 @@ FROM ruby:2.6 RUN mkdir /data WORKDIR /data -RUN apt-get update && apt-get -y install nodejs +RUN apt-get update +RUN curl -fsSL "https://cdn.jsdelivr.net/gh/tj/n@7.3.0/bin/n#v14.17.1" | bash -s -- lts COPY Gemfile /data/