From 1a55cd46a143fba765e18c9238c8ded3d3016cfe Mon Sep 17 00:00:00 2001 From: yachi Date: Sun, 19 Oct 2025 19:57:04 +0100 Subject: [PATCH] fix: Skip prepare script during builder npm ci The prepare script runs tsc which needs source files, but we haven't copied them yet during npm ci. Run --ignore-scripts during npm ci, then explicitly run 'npm run prepare' after copying source files. This fixes TS18003 'No inputs were found' error in builder stage. --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index d84b11b..4f11037 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,8 +15,8 @@ WORKDIR /app COPY package*.json ./ COPY tsconfig.json ./ -# Install dependencies -RUN npm ci +# Install dependencies (skip prepare script since source isn't copied yet) +RUN npm ci --ignore-scripts # Copy source code COPY src ./src