update at 2019-12-20 17:36:29 by ehlxr
This commit is contained in:
@@ -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 \
|
||||
|
Reference in New Issue
Block a user