https://github.com/tknxn/docker-hexo
FROM node:10.13.0-alpine
# install hexo
RUN npm install hexo-cli -g
# init
WORKDIR _init
RUN hexo init && npm install
# create data volume
VOLUME /blog
WORKDIR /blog
# hexo default port
EXPOSE 4000
# set entrypoint
COPY entrypoint.sh /root/
RUN chmod +x /root/entrypoint.sh
# run hexo server
ENTRYPOINT ["/root/entrypoint.sh"]
Content type
Image
Digest
Size
62.5 MB
Last updated
almost 8 years ago
docker pull tknxn/hexo