From efd1156739071a45afdb64b279e2a14ff116bb68 Mon Sep 17 00:00:00 2001 From: Developer Date: Tue, 2 Dec 2025 04:41:29 -0800 Subject: [PATCH] fix(mpc-service): correct build output path to dist/main.js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit NestJS with tsconfig outDir: ./dist builds to dist/main.js, not dist/src/main.js. Added build verification step to catch this earlier. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- backend/services/mpc-service/Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/backend/services/mpc-service/Dockerfile b/backend/services/mpc-service/Dockerfile index bea699fd..bb4928ee 100644 --- a/backend/services/mpc-service/Dockerfile +++ b/backend/services/mpc-service/Dockerfile @@ -25,6 +25,9 @@ COPY src ./src # Build TypeScript RUN npm run build +# Verify build output exists +RUN ls -la dist/ && test -f dist/main.js + # Production stage - use Debian slim for OpenSSL compatibility FROM node:20-slim @@ -64,4 +67,4 @@ HEALTHCHECK --interval=30s --timeout=3s --start-period=40s --retries=3 \ CMD node -e "require('http').get('http://localhost:3006/api/v1/health', (r) => {process.exit(r.statusCode === 200 ? 0 : 1)})" # Start service -CMD ["node", "dist/src/main.js"] +CMD ["node", "dist/main.js"]