update at 2019-12-20 17:59:32 by ehlxr
parent
6f567f115e
commit
863aa717f1
|
@ -5,9 +5,11 @@ WORKDIR /hexo
|
||||||
|
|
||||||
COPY package.json package.json
|
COPY package.json package.json
|
||||||
|
|
||||||
RUN apk add --update --no-cache --virtual=build-dependencies git \
|
RUN apk add --update --no-cache --virtual=build-dependencies git yarn \
|
||||||
&& npm config set registry https://registry.npm.taobao.org \
|
# && npm config set registry https://registry.npm.taobao.org \
|
||||||
&& npm install \
|
# && 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/hexo-cli/bin/hexo /usr/local/bin/hexo \
|
||||||
&& ln -s /hexo/node_modules/gulp/bin/gulp.js /usr/local/bin/gulp \
|
&& ln -s /hexo/node_modules/gulp/bin/gulp.js /usr/local/bin/gulp \
|
||||||
&& apk del build-dependencies \
|
&& apk del build-dependencies \
|
||||||
|
|
Loading…
Reference in New Issue