站点更新:2018-11-14 13:55:07

This commit is contained in:
2018-11-14 13:55:07 +08:00
parent 1829b5c17d
commit f2d743bbc6
2 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
FROM node:alpine
LABEL maintainer="ehlxr.me@gmail.com"
WORKDIR /hexo
COPY package.json package.json
RUN apk add --update --no-cache --virtual=build-dependencies git \
&& 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 \
&& apk del build-dependencies \
&& rm /var/cache/apk/* \
&& rm package*.json \
&& npm cache clean --force