抱歉,您的浏览器无法访问本站

本页面需要浏览器支持(启用)JavaScript


了解详情 >
Docker
Docker

为了更好的引出 Docker, 先简单介绍下 Linux 容器:

1. docker what?

Docker 属于 Linux 容器的一种封装,提供简单易用的容器使用接口。

2. dockerfile

1
2
3
4
5
6
7
8
9
10
11
FROM blair101/ubuntu-hexo-blog:v1.3

COPY ./source /blog/source

WORKDIR /blog

#RUN hexo s

EXPOSE 4000

CMD hexo s

3. markdown 适配渲染问题

1
2
3
4
npm uninstall hexo-renderer-markdown-it
npm un hexo-renderer-marked
npm install hexo-renderer-markdown-it-plus --save
npm install hexo-renderer-kramed --save

Reference

plugins:

Comments