update at 2019-12-20 17:59:32 by ehlxr

This commit is contained in:
ehlxr 2019-12-20 17:59:32 +08:00
parent 6f567f115e
commit 863aa717f1

View File

@ -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 \