Код: Выделить всё
# Install OpenJDK, LibreOffice, and Xorg Server
RUN apk add openjdk11-jre
RUN apk add libreoffice
RUN apk add libreoffice-writer
RUN apk add ttf-freefont
RUN apk add libreoffice-common
RUN apk add --no-cache msttcorefonts-installer fontconfig && \
update-ms-fonts && \
fc-cache -f
Код: Выделить всё
export HOME=/app/www/protocolo-online/public && libreoffice --headless --nologo --convert-to pdf /app/www/protocolo-online/storage/desenvolvimento/titulo-legitimacao-775/titulo-legitimacao-individual-1233.docx --outdir /app/www/protocolo-online/storage/desenvolvimento/titulo-legitimacao-775
Код: Выделить всё
usr/lib/libreoffice/program/soffice.bin X11 error: Can't open display:
Set DISPLAY environment variable, use -display option
or check permissions of your X-Server
(See "man X" resp. "man xhost" for details)
Подробнее здесь: https://stackoverflow.com/questions/786 ... n-terminal
Мобильная версия