From f00a2ef934db75890c8b9370f2504f2ed97355db Mon Sep 17 00:00:00 2001 From: Kenzo Date: Tue, 9 Dec 2025 18:06:26 +0100 Subject: [PATCH] feat: Add vips dependencies for sharp in backend Dockerfile - Added `vips-dev` and `vips` to build and runtime dependencies. - Updated installation process to ensure compilation --- backend/Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/backend/Dockerfile b/backend/Dockerfile index fb74fab..ccb6edd 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -31,9 +31,9 @@ RUN apk add --no-cache git sqlite vips vips-dev python3 make g++ # Copy package files first COPY --from=builder /app/package*.json ./ -# Rebuild sharp for the correct architecture (linuxmusl-x64) -# Install all production dependencies -RUN npm ci --omit=dev || npm install --production +# Install all production dependencies and rebuild sharp for linuxmusl-x64 +RUN npm ci --omit=dev || npm install --production && \ + npm rebuild sharp # Clean up build dependencies after installation to reduce image size RUN apk del python3 make g++ vips-dev