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>
This commit is contained in:
root 2026-05-09 23:23:36 +00:00
parent b50e340f5a
commit 28189ac916
2 changed files with 4 additions and 4 deletions

View File

@ -7,8 +7,8 @@ WORKDIR /app/backend
COPY backend/package.json ./package.json COPY backend/package.json ./package.json
COPY backend/tsconfig.json ./tsconfig.json COPY backend/tsconfig.json ./tsconfig.json
# Install backend-specific dependencies only # Install backend-specific dependencies (including devDependencies for building)
RUN pnpm install --prod --ignore-scripts RUN pnpm install --ignore-scripts
# Copy source code # Copy source code
COPY backend/src/ ./src/ COPY backend/src/ ./src/

View File

@ -9,8 +9,8 @@ COPY web/next.config.ts ./next.config.ts
COPY web/tsconfig.json ./tsconfig.json COPY web/tsconfig.json ./tsconfig.json
COPY web/next-env.d.ts ./next-env.d.ts COPY web/next-env.d.ts ./next-env.d.ts
# Install web-specific dependencies only # Install web-specific dependencies (including devDependencies for building)
RUN pnpm install --prod --ignore-scripts RUN pnpm install --ignore-scripts
# Copy source code # Copy source code
COPY web/src/ ./src/ COPY web/src/ ./src/