This commit is contained in:
newnius 2016-11-11 18:33:18 +08:00
commit 435e692e40
3 changed files with 28 additions and 0 deletions

16
hexo/Dockerfile Normal file
View File

@ -0,0 +1,16 @@
FROM node:latest
MAINTAINER Newnius <newnius.cn@gmail.com>
RUN apt-get -y update && apt-get -y install git && apt-get install -y vim && npm install -g hexo-cli
RUN npm install hexo-generator-feed --save
#Local Search
RUN npm install hexo-generator-searchdb --save
ADD bootstrap.sh /etc/bootstrap.sh
WORKDIR /blog
ENTRYPOINT ["/etc/bootstrap.sh", "nothing"]

3
hexo/README.md Normal file
View File

@ -0,0 +1,3 @@
https://hexo.io/zh-cn/
http://theme-next.iissnan.com/

9
hexo/bootstrap.sh Executable file
View File

@ -0,0 +1,9 @@
#! /bin/bash
if [ "$1" == "server" ]; then
# start hexo server
hexo server
else
# do nothing, just wait
while true; do sleep 1000; done
fi