fix: add build deps for sharp (libc6-compat, python3, make, g++)
This commit is contained in:
parent
ebc4a07d2d
commit
f15eab8370
|
|
@ -4,6 +4,11 @@
|
|||
|
||||
FROM node:22-alpine
|
||||
|
||||
# Install build dependencies for native modules (sharp, etc.)
|
||||
# libc6-compat: Required for sharp on Alpine
|
||||
# python3 make g++: Required for node-gyp builds
|
||||
RUN apk add --no-cache libc6-compat python3 make g++
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Copy package files first (for better Docker layer caching)
|
||||
|
|
|
|||
Loading…
Reference in New Issue