This repository contains Dockerfile of Web2PDF for Docker
Latest docker image is built and hosted on docker hub. You can pull one by:
docker pull warenix/web2pdf:latest
Application code is placed at /app
Build Web2PDF api server image:
docker-compose build
Start Web2PDF api server container:
docker-compose up
After few seconds, open localhost to see the api server is up and running.
Test pdf conversion service is up
sh test/test_pdf.sh
You should see output like below:
{
"result": {
"pdf_url": "http://localhost:8080/pdfout/yv2iWaQOLPN.pdf",
"url": "http://hk.yahoo.com"
}
}
0. Portforward from host to virtualbox
If you cannot see Web2PDF api server container is responding to your requst, you may need to do pror forward from your host to the virtual box as below:
```sh
cd docker/script; sh vbox_port_forward.sh
```
You can try again then.
Content type
Image
Digest
Size
283.9 MB
Last updated
over 8 years ago
docker pull warenix/web2pdf