From 863aa717f19c7ef723154f4bcc3edf792f821e88 Mon Sep 17 00:00:00 2001 From: ehlxr Date: Fri, 20 Dec 2019 17:59:32 +0800 Subject: [PATCH] update at 2019-12-20 17:59:32 by ehlxr --- hexo-builder/next/Dockerfile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/hexo-builder/next/Dockerfile b/hexo-builder/next/Dockerfile index 93e0895..3a5ea0e 100644 --- a/hexo-builder/next/Dockerfile +++ b/hexo-builder/next/Dockerfile @@ -5,9 +5,11 @@ WORKDIR /hexo COPY package.json package.json -RUN apk add --update --no-cache --virtual=build-dependencies git \ - && npm config set registry https://registry.npm.taobao.org \ - && npm install \ +RUN apk add --update --no-cache --virtual=build-dependencies git yarn \ + # && npm config set registry https://registry.npm.taobao.org \ + # && npm install \ + && yarn config set registry https://registry.npm.taobao.org/ \ + && yarn \ && ln -s /hexo/node_modules/hexo-cli/bin/hexo /usr/local/bin/hexo \ && ln -s /hexo/node_modules/gulp/bin/gulp.js /usr/local/bin/gulp \ && apk del build-dependencies \