这是一个基于 docker 的 hexo 博客环境,博客主题是 even。你只需要安装一个docker,就可以快速的搭建一个博客,并且随时随地在任何地方更新博客。
FROM node:latest
RUN npm install -g cnpm --registry=https://registry.npm.taobao.org
RUN cnpm install hexo-cli hexo-server -g
RUN hexo init blog && cd blog && cnpm install \
&& cnpm install hexo-renderer-scss --save \
&& cnpm install hexo-deployer-git --save
RUN cd /blog && cnpm install hexo-generator-search --save
CMD /bin/bash
WORKDIR /blog
EXPOSE 4000
更多信息,请查看 https://github.com/wenyg/blog/
Content type
Image
Digest
Size
400.6 MB
Last updated
almost 7 years ago
docker pull wenyg/blog