You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hi love your works, but i kinda stressed out why it is not working on my projects.
i use this wrapper: https://www.npmjs.com/package/wkhtmltopdf
and run it in windows server 2019 environment, with docker.
FROM surnet/alpine-node-wkhtmltopdf:16.18.0-0.12.6-full AS deps
ADD package.json /tmp/package.json
RUN cd /tmp && npm install
RUN mkdir -p /app && cp -a /tmp/node_modules /app/
# Set work directoryWORKDIR /app
COPY . /app
RUN npx prisma generate
# RUN npm run swagger# RUN npm run buildCOPY ./templates /app/dist/templates
# Set the command to run your appCMD ["npm", "run", "dev"]
but it return weird error and no way i could possibly know why? when i run node test.js or my project function. it is working well on native machine running ubuntu, mac, and windows but cant work properly on docker running alpine and debian. any ideas?
The text was updated successfully, but these errors were encountered:
Please try to run wkhtmltopdf with debug mode wkhtmltopdf('http://google.com/', { pageSize: 'letter', debug: true }) which should get you more information about what commands will be executed and which one fails.
Please also check that /bin/bash is available on your container.
Also try to write the file in another directory fs.createWriteStream('/tmp/out.pdf') to make sure that you have proper write permissions with your user.
hi love your works, but i kinda stressed out why it is not working on my projects.
i use this wrapper: https://www.npmjs.com/package/wkhtmltopdf
and run it in windows server 2019 environment, with docker.
minimal replication:
my dockerfile:
my compose:
but it return weird error and no way i could possibly know why? when i run node test.js or my project function. it is working well on native machine running ubuntu, mac, and windows but cant work properly on docker running alpine and debian. any ideas?
The text was updated successfully, but these errors were encountered: