From 5253aaf1749582f294913970b822c7bd0a10298a Mon Sep 17 00:00:00 2001 From: root Date: Sat, 9 May 2026 23:23:37 +0000 Subject: [PATCH] fix(docker): install all dependencies in builder stage for build tools The base image only includes production dependencies, so we need to install all dependencies (including devDependencies) in the builder stage to have TypeScript and Next.js available for building. Generated with [Devin](https://cli.devin.ai/docs) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- backend/Dockerfile | 4 ++-- web/Dockerfile | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/Dockerfile b/backend/Dockerfile index 8a73dc5..a2c3bf7 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -7,8 +7,8 @@ WORKDIR /app/backend COPY backend/package.json ./package.json COPY backend/tsconfig.json ./tsconfig.json -# Install backend-specific dependencies only -RUN pnpm install --prod --ignore-scripts +# Install backend-specific dependencies (including devDependencies for building) +RUN pnpm install --ignore-scripts # Copy source code COPY backend/src/ ./src/ diff --git a/web/Dockerfile b/web/Dockerfile index 9db9f9d..55ea90a 100644 --- a/web/Dockerfile +++ b/web/Dockerfile @@ -9,8 +9,8 @@ COPY web/next.config.ts ./next.config.ts COPY web/tsconfig.json ./tsconfig.json COPY web/next-env.d.ts ./next-env.d.ts -# Install web-specific dependencies only -RUN pnpm install --prod --ignore-scripts +# Install web-specific dependencies (including devDependencies for building) +RUN pnpm install --ignore-scripts # Copy source code COPY web/src/ ./src/