using docker to deploy chromedp/headless-shell,and add suport for chinese(install
fonts,using mirror etc.)when all dependencies installed,you can run the following command to try generating pdf using our pre-build app.
```bash
when using linux
./go-pdf -url=http://www.baidu.com -path=./baidu.pdf
```
- docker
- go(for demostration)
```bash
bash pdf.sh
```
```bash
docker pull registry.cn-hangzhou.aliyuncs.com/programnotes/chromedp-headless-shell-suport-chinese:v1.2
# run container using script
bash run-pull-container.sh
```
```bash
curl -X GET http://localhost:9222/json
```
if you see the result,it means the server is running.
```bash
[ {
"description": "",
"devtoolsFrontendUrl": "/devtools/inspector.html?ws=localhost:9222/devtools/page/ D2502817BA8C5F804A663645ECEA3054",
"id": "D2502817BA8C5F804A663645ECEA3054",
"title": "about:blank",
"type": "page",
"url": "about:blank",
"webSocketDebuggerUrl": "ws://localhost:9222/devtools/page/D2502817BA8C5F804A663645ECEA3054"
} ]
```