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:
parent
cb51cbe671
commit
5253aaf174
@ -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/
|
||||
|
||||
@ -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/
|
||||
|
||||
Loading…
Reference in New Issue
Block a user