FEATURES: v6:
v7:
docker run --rm -p 4000:4000 -d wenfengand/hexo:v6
Then visit localhost:4000.
docker run --rm --name some-hexo \
-v $(pwd)/site_config.yaml:/opt/hexo/ipple1986/_config.yaml \
-v $(pwd)/next_config.yaml:/opt/hexo/ipple1986/themes/next/_config.yml \
-v $(pwd)/_posts:/opt/hexo/ipple1986/source/_posts \
-v $(pwd)/public:/opt/hexo/ipple1986/public \
-v $(pwd)/db.json:/opt/hexo/ipple1986/db.json \
-p 4000:4000 \
-d wenfengand/hexo:v6 \
Some explainnation:
site_config.yaml settings for sitenext_config.yaml settings for next theme_posts all your postspublic generated static site file, you can upload this folder to your site host.db.json database hexo may useIf you want to custom your head
-v $(pwd)/custom_head.swig:/opt/hexo/ipple1986/themes/next/layout/_partials/head/custom-head.swig
FROM wenfengand/hexo:v5
# MAINTAINER
MAINTAINER [email protected]
COPY data/ /opt/hexo/ipple1986/
COPY start.sh /opt/hexo/ipple1986/start.sh
# running required command
# change dir to /
WORKDIR /opt/hexo/ipple1986/
CMD [ "./start.sh" ]
start.sh
hexo s
Content type
Image
Digest
Size
270.7 MB
Last updated
about 7 years ago
docker pull wenfengand/hexo:v7