mirror of
https://github.com/newnius/Dockerfiles.git
synced 2025-06-07 08:31:55 +00:00
add hexo
This commit is contained in:
commit
435e692e40
16
hexo/Dockerfile
Normal file
16
hexo/Dockerfile
Normal 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
3
hexo/README.md
Normal file
@ -0,0 +1,3 @@
|
||||
https://hexo.io/zh-cn/
|
||||
|
||||
http://theme-next.iissnan.com/
|
9
hexo/bootstrap.sh
Executable file
9
hexo/bootstrap.sh
Executable 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
|
Loading…
Reference in New Issue
Block a user