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
b50e340f5a
commit
28189ac916
@ -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/
|
||||||
|
|||||||
@ -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/
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user