Closed yuertongle-fs closed 1 year ago
Same issue here, using this Dockerfile from the readme:
https://github.com/Surnet/docker-wkhtmltopdf#other-images
Edit: Just realized this issue only occurs with my custom base image. If I use the normal alpine image everything works. I'll have to investigate further. So far it looks like an arch issue with my base image.
Update: In my case the issue was that the base image wasn't available for the architecture I was building on (arm64). After rebuilding my base image for both amd64 and arm64 I was able to build and use wkhtmltopdf.
@yuertongle-fs are you building on an arm machine? As far as I can tell, your base image fundingsocietiesdocker/golang is only available for amd64. Perhaps that is your issue, too.
amd64
Ah, I see. Should be for the machine I'm using. I'm running the docker on Apple M1(ARM-based system)
Thanks @jpjonte that you did troubleshoot this and post your solution. I'm closing this issue as solved.
Below is my Dockerfile
after I build the image and run it, I got below in the container -> terminal