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:
+1
-1
@@ -22,7 +22,7 @@ RUN ARCH=$(dpkg --print-architecture) \
|
||||
WORKDIR /app
|
||||
|
||||
COPY package*.json ./
|
||||
RUN npm install
|
||||
RUN npm install --ignore-scripts
|
||||
|
||||
COPY . .
|
||||
|
||||
|
||||
Reference in New Issue
Block a user