Updated
This commit is contained in:
@@ -5,6 +5,10 @@ WORKDIR /app
|
||||
|
||||
COPY package.json bun.lockb* ./
|
||||
RUN bun install --frozen-lockfile
|
||||
|
||||
# --- ✅ Rebuild sharp for correct Linux architecture ---
|
||||
RUN bun x npm rebuild sharp --platform=linux --arch=x64 --target=$(node -v | sed 's/v//')
|
||||
|
||||
COPY . .
|
||||
RUN bun run build
|
||||
|
||||
|
||||
Reference in New Issue
Block a user