This commit is contained in:
newnius 2016-11-30 20:47:38 +08:00
parent 5517a76809
commit 234ed1df80
3 changed files with 8 additions and 1 deletions

View File

@ -15,4 +15,4 @@ ADD bootstrap.sh /etc/bootstrap.sh
WORKDIR /blog
ENTRYPOINT ["bash", "/etc/bootstrap.sh", "nothing"]
CMD ["bash", "/etc/bootstrap.sh", "nothing"]

View File

@ -1,3 +1,9 @@
https://hexo.io/zh-cn/
http://theme-next.iissnan.com/
First Time:
docker service create --name hexo --publish 4000:4000 newnius/hexo
Start Server:
docker service create --name hexo --publish 4000:4000 newnius/hexo hexo server

View File

@ -2,6 +2,7 @@
if [ "$1" == "server" ]; then
# start hexo server
echo "starting hexo..."
hexo server
else
# do nothing, just wait