Sign inSign up

soulmachine/hexo

By soulmachine

Updated over 9 years ago

This docker image wraps hexo as a single executable.

Image
0

345

soulmachine/hexo repository overview

This docker image wraps hexo as a single executable.

Build the image

cd hexo
docker build -t hexo .

Also, this images is already published to Docker Hub, so you can pull it directly,

docker pull soulmachine/hexo

How to use it

docker run -v $(pwd):/tmp/hexo -w /tmp/hexo soulmachine/hexo init blog
docker run -v $(pwd):/tmp/hexo -w /tmp/hexo/blog soulmachine/hexo new "Hello World"
docker run -v $(pwd):/tmp/hexo -w /tmp/hexo/blog soulmachine/hexo generate
docker run -v $(pwd):/tmp/hexo -w /tmp/hexo/blog -p 4000:4000 -d soulmachine/hexo server

Tag summary

Content type

Image

Digest

Size

23.1 MB

Last updated

over 9 years ago

docker pull soulmachine/hexo