Skip to content

Commit

Permalink
feat: add html-pdf for docker
Browse files Browse the repository at this point in the history
  • Loading branch information
lizheming committed Oct 25, 2020
1 parent 8c912ac commit 4e62e07
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@ COPY www ${WORKDIR}/www
COPY sqlite ${WORKDIR}/sqlite

RUN npm run compile
RUN npm install html-pdf --registry=https://registry.npm.taobao.org

CMD [ "node", "www/production.js" ]
2 changes: 2 additions & 0 deletions README_zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ npm install;

注:Kindle 推送服务需要使用 html-pdf 模块,它依赖的 phantomJS 模块因为网络问题会导致安装很慢,所以我默认把这个模块从依赖中去掉了,有需要 Kindle 推送服务的可以自行 `npm install html-pdf` 安装。



## 修改配置

修改配置文件 `src/common/config/config.js` 中的值:
Expand Down

0 comments on commit 4e62e07

Please sign in to comment.