Dockerfile for hexo blog.
Clone this repo and build image.
example:
sudo docker build -t hexo-docker:latest .
Voluem /hexo and /root/.ssh dir.
example:
/Users/xxx/xxx/xxx is my hexo dir and /Users/xxx/.ssh is my ssh dir.
sudo docker run -itd -p 4000:4000 -v /Users/xxx/xxx/xxx:/hexo -v /Users/xxx/.ssh:/root/.ssh hexo-docker:latest
In the docker, you can execute the hexo command.
example:
hexo --help
hexo clean
hexo g
hexo s
Input localhost:4000 in the browser and look up.