From 6016a750f6cc095a9a218b7330703ef667c93e3a Mon Sep 17 00:00:00 2001 From: Dedy Martadinata S Date: Wed, 21 Feb 2024 14:03:12 +0700 Subject: [PATCH 1/2] distro vips --- docker/debian-bullseye/Dockerfile.build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docker/debian-bullseye/Dockerfile.build b/docker/debian-bullseye/Dockerfile.build index 62723cab..3ef2369d 100644 --- a/docker/debian-bullseye/Dockerfile.build +++ b/docker/debian-bullseye/Dockerfile.build @@ -1,6 +1,7 @@ #-----------------BUILDER----------------- #----------------------------------------- FROM node:18-bullseye AS builder +RUN apt update && apt install -y --no-install-recommends libvips-dev python3 COPY pigallery2-release /app WORKDIR /app RUN npm install --unsafe-perm @@ -25,7 +26,7 @@ ENV NODE_ENV=production \ EXPOSE 80 RUN apt-get update \ - && apt-get install -y --no-install-recommends ca-certificates wget ffmpeg \ + && apt-get install -y --no-install-recommends ca-certificates wget ffmpeg libvips42 \ && apt-get clean -q -y \ && rm -rf /var/lib/apt/lists/* COPY --from=builder /app /app From 207fb50690db8b161e06501e324e5b5a636d32a8 Mon Sep 17 00:00:00 2001 From: Dedy Martadinata S Date: Wed, 21 Feb 2024 14:04:42 +0700 Subject: [PATCH 2/2] Update Dockerfile.build --- docker/debian-buster/Dockerfile.build | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docker/debian-buster/Dockerfile.build b/docker/debian-buster/Dockerfile.build index 7d2576e6..38f525cb 100644 --- a/docker/debian-buster/Dockerfile.build +++ b/docker/debian-buster/Dockerfile.build @@ -1,6 +1,7 @@ #-----------------BUILDER----------------- #----------------------------------------- FROM node:18-buster AS builder +RUN apt update && apt install -y --no-install-recommends libvips-dev python3 COPY pigallery2-release /app WORKDIR /app RUN npm install --unsafe-perm @@ -25,7 +26,7 @@ ENV NODE_ENV=production \ EXPOSE 80 RUN apt-get update \ - && apt-get install -y --no-install-recommends ca-certificates wget ffmpeg \ + && apt-get install -y --no-install-recommends ca-certificates wget ffmpeg libvips42 \ && apt-get clean -q -y \ && rm -rf /var/lib/apt/lists/* COPY --from=builder /app /app