From 1d5ff1ed9bdea70fe9f3d10a4bd267946ae10bf5 Mon Sep 17 00:00:00 2001 From: lamka02sk Date: Fri, 31 May 2024 17:49:26 +0200 Subject: [PATCH] Imagick support --- docker/base.yml | 3 ++- docker/build.yml | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/docker/base.yml b/docker/base.yml index b1579dc..3544cec 100755 --- a/docker/base.yml +++ b/docker/base.yml @@ -47,7 +47,8 @@ RUN apt update -y && \ libpng-dev \ libheif-dev \ libpoppler-glib-dev \ - libcgif-dev && \ + libcgif-dev \ + libmagickcore-6.q16-dev && \ apt autoremove && apt-get clean && rm -rf /var/lib/apt/lists/* # Install libvips diff --git a/docker/build.yml b/docker/build.yml index 07389de..7a63987 100755 --- a/docker/build.yml +++ b/docker/build.yml @@ -31,6 +31,8 @@ FROM ubuntu:24.04 RUN groupadd -g 1500 picturium RUN useradd -u 1500 -g 1500 -m -d /app -s /bin/bash picturium +RUN mkdir -p /home/picturium && chown -R picturium:picturium /home/picturium + COPY --from=build /usr/local/lib /usr/local/lib COPY --from=build /usr/local/bin/vips /usr/local/bin/vips COPY --from=build /lib/x86_64-linux-gnu /lib/x86_64-linux-gnu @@ -44,5 +46,7 @@ COPY --from=build /home/picturium/picturium/target/release/picturium /usr/local/ RUN ldconfig USER picturium +ENV PATH="/usr/lib/libreoffice/program:${PATH}" + WORKDIR /app ENTRYPOINT picturium