mirror of
https://github.com/newnius/Dockerfiles.git
synced 2025-06-07 08:31:55 +00:00
update
This commit is contained in:
parent
5517a76809
commit
234ed1df80
@ -15,4 +15,4 @@ ADD bootstrap.sh /etc/bootstrap.sh
|
||||
|
||||
WORKDIR /blog
|
||||
|
||||
ENTRYPOINT ["bash", "/etc/bootstrap.sh", "nothing"]
|
||||
CMD ["bash", "/etc/bootstrap.sh", "nothing"]
|
||||
|
@ -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
|
||||
|
@ -2,6 +2,7 @@
|
||||
|
||||
if [ "$1" == "server" ]; then
|
||||
# start hexo server
|
||||
echo "starting hexo..."
|
||||
hexo server
|
||||
else
|
||||
# do nothing, just wait
|
||||
|
Loading…
Reference in New Issue
Block a user