When i generate a PDF from HTML file using html-pdf node module, it is throwing following error (only in docker). Same code is working in local machine ubuntu 18.04
write EPIPE\n at afterWriteDispatched (internal/stream_base_commons.js:154:25)\n at writeGeneric (internal/stream_base_commons.js:145:3)\n at Socket._writeGeneric (net.js:784:11)\n at Socket._write (net.js:796:8)\n at doWrite (_stream_writable.js:403:12)\n at writeOrBuffer (_stream_writable.js:387:5)\n at Socket.Writable.write (_stream_writable.js:318:11)\n at PDF.PdfExec [as exec] (/usr/src/app/node_modules/html-pdf/lib/pdf.js:141:15)\n at PDF.PdfToFile [as toFile] (/usr/src/app/node_modules/html-pdf/lib/pdf.js:83:8)\n
Phantom Error:
spawn /usr/src/app/node_modules/phantomjs-prebuilt/lib/phantom/bin/phantomjs ENOENT\n at Process.ChildProcess._handle.onexit (internal/child_process.js:267:19)\n