feat: Add vips dependencies for sharp in backend Dockerfile
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

- Added `vips-dev` and `vips` to build and runtime dependencies.
- Updated installation process to ensure compilation
This commit is contained in:
2025-12-09 18:06:26 +01:00
parent ccc5c028ba
commit f00a2ef934

View File

@ -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