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 <noreply@anthropic.com>
This commit is contained in:
ekko
2026-04-24 23:52:54 +08:00
committed by GitHub
parent 833fe06f92
commit c1e72942ad
+1 -1
View File
@@ -22,7 +22,7 @@ RUN ARCH=$(dpkg --print-architecture) \
WORKDIR /app
COPY package*.json ./
RUN npm install
RUN npm install --ignore-scripts
COPY . .