站点更新:2018-11-14 13:55:07
This commit is contained in:
14
hexo-builder/next/Dockerfile
Normal file
14
hexo-builder/next/Dockerfile
Normal 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
|
Reference in New Issue
Block a user