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 \