From c1e72942ade8e0ffce35a5d79c96b0e1410bfe2e Mon Sep 17 00:00:00 2001 From: ekko <152005280+EKKOLearnAI@users.noreply.github.com> Date: Fri, 24 Apr 2026 23:52:54 +0800 Subject: [PATCH] fix(docker): skip prepare script during npm install (#196) #142 added a `prepare` script that triggers `npm run build` when dist/ is missing. During Docker build, `npm install` runs before source files and tsconfig.json are copied, causing build failure. Use --ignore-scripts to defer build to the explicit step. Co-authored-by: Claude Opus 4.6 --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 9c17828..0d09d4c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,7 +22,7 @@ RUN ARCH=$(dpkg --print-architecture) \ WORKDIR /app COPY package*.json ./ -RUN npm install +RUN npm install --ignore-scripts COPY . .