Open rrodrigofranco opened 4 months ago
I'm sorry, but I'm failing to understand what this has to do with the php
image other than that you're using it as a base? The libreoffice
package you're installing comes from Alpine, not from us, so there's not really much we can do/change to help you here. :sweat_smile:
The problem is not with the image but with how the container is created/runs. The package expects a window system (X11) which needs to be defined when the container is created. I would recommend posting this question to the Docker Community Slack https://join.slack.com/t/dockercommunity/shared_invite/zt-2m79lx4uf-fHufHr6GO4ZBM5oqUHhIbg
I am using the php:7.4-fpm-alpine image, but when I try to install LibreOffice with the following command:
and then attempt to convert a DOC or DOCX file to PDF, I encounter the following error:
The command I used is:
libreoffice --headless --convert-to pdf processo-administrativo-notificacao-08-07-2024-09-56-48.docx
Can someone help me resolve this issue?