From b7063d3658864596bba79d59a4c1943b5daf1f9c Mon Sep 17 00:00:00 2001 From: bipproduction Date: Fri, 6 Mar 2026 11:12:24 +0800 Subject: [PATCH] fix: update Dockerfile bun version and remove --ignore-scripts Upgrade bun 1.3.1 to 1.3.6 and remove --ignore-scripts flag to fix prerender error during Docker build (null useContext dispatcher). Co-Authored-By: Claude Opus 4.6 --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 86a24b4..9023548 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ # ============================== # Stage 1: Builder (Bun) # ============================== -FROM oven/bun:1.3.1-debian AS builder +FROM oven/bun:1.3.6-debian AS builder WORKDIR /app @@ -19,7 +19,7 @@ ENV ONNXRUNTIME_NODE_INSTALL_CUDA=0 ENV SHARP_IGNORE_GLOBAL_LIBVIPS=1 ENV NEXT_TELEMETRY_DISABLED=1 -RUN bun install --ignore-scripts +RUN bun install COPY . . @@ -45,7 +45,7 @@ RUN bun run build # ============================== # Stage 2: Runner (Bun) # ============================== -FROM oven/bun:1.3.1-debian AS runner +FROM oven/bun:1.3.6-debian AS runner WORKDIR /app