Dockerfile/hexo-base/Dockerfile
ehlxr 26eacaaab8 🔨 refactor(): hexo-base
hexo base

Signed-off-by: ehlxr <ehlxr.me@gmail.com>
2018-03-29 11:14:00 +08:00

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