14 lines
454 B
Docker
14 lines
454 B
Docker
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 |