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/