feat: Add vips dependencies for sharp in backend Dockerfile
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
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:
@ -31,9 +31,9 @@ RUN apk add --no-cache git sqlite vips vips-dev python3 make g++
|
|||||||
# Copy package files first
|
# Copy package files first
|
||||||
COPY --from=builder /app/package*.json ./
|
COPY --from=builder /app/package*.json ./
|
||||||
|
|
||||||
# Rebuild sharp for the correct architecture (linuxmusl-x64)
|
# Install all production dependencies and rebuild sharp for linuxmusl-x64
|
||||||
# Install all production dependencies
|
RUN npm ci --omit=dev || npm install --production && \
|
||||||
RUN npm ci --omit=dev || npm install --production
|
npm rebuild sharp
|
||||||
|
|
||||||
# Clean up build dependencies after installation to reduce image size
|
# Clean up build dependencies after installation to reduce image size
|
||||||
RUN apk del python3 make g++ vips-dev
|
RUN apk del python3 make g++ vips-dev
|
||||||
|
|||||||
Reference in New Issue
Block a user