Closed jmcollin78 closed 7 years ago
It is difficult to run phantomjs on alpine based image, because there are too many things missing. You can try to google it out and try something like this to make it working, but at least I was not successful with it.
https://github.com/ncopa/docker-phantomjs-alpine
Perhaps you need to use a bigger image, here is this package working on ubuntu based docker
https://github.com/jsreportonline/phantom-pdf/blob/master/Dockerfile
Please let me know if you make it working on alpine, I would gladly use it.
@jmcollin78 did you end up finding a way to make it work with Docker?
Yes ! The solution was not to use to -alpine base image.
Hi there, I can't make phantom-html-to-pdf works in a dockerized environment. I run the nodeJS docker image named node:7.4-alpine which runs an application containing phantom-html-to-pdf. Each time I try to generate a pdf I've got an exception:
Of course this works well outside a container.
Any clues to make it works ?
EDIT: My piece of code: