Closed muadpn closed 4 months ago
Hello
I've done a full rewrite for this service and it's no longer using the old methods of nodejs and python.
Try using the below image
docker pull moalhaddar/docx-to-pdf:latest
docker run -d --name docx-to-pdf -e 'pool.size=1' -p 8080:8080 moalhaddar/docx-to-pdf:latest
And let me know :)
Running the Docker Container throws a error initially. PermissionError: [Errno 13] Permission denied: '/usr/local/lib/python3.8/dist-packages/unoserver/server.py'
upon some debugging I found that starting the unoserver in --daemon us the reason for the initial error. removing it starts the process : const child = spawn('python3', ['-m', 'unoserver.server', '--daemon']); => const child = spawn('python3', ['-m', 'unoserver.server']);
but then it throws the error while converting the pdf that it file is not on the directory.