From 28189ac916dd936cabceb78591fda3f33c828511 Mon Sep 17 00:00:00 2001 From: root Date: Sat, 9 May 2026 23:23:36 +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 46e7746..8039c35 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 0c1763b..16026f1 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/