update at 2019-12-20 17:36:29 by ehlxr

This commit is contained in:
2019-12-20 17:36:29 +08:00
parent 47e6a88413
commit 6f567f115e
2 changed files with 10 additions and 8 deletions

View File

@@ -1,3 +1,4 @@
# docker build -t ehlxr/hexo-builder:next .
FROM node:alpine
LABEL maintainer="ehlxr.me@gmail.com"
WORKDIR /hexo
@@ -5,6 +6,7 @@ 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 \
&& 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 \