fix: update dependency installation commands in Dockerfile for compatibility
This commit is contained in:
@@ -6,8 +6,8 @@ WORKDIR /app
|
|||||||
# Copy package files
|
# Copy package files
|
||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
|
|
||||||
# Install dependencies with clean cache
|
# Install dependencies
|
||||||
RUN npm ci --prefer-offline --no-audit
|
RUN npm install --legacy-peer-deps
|
||||||
|
|
||||||
# Copy source code
|
# Copy source code
|
||||||
COPY . .
|
COPY . .
|
||||||
@@ -23,8 +23,8 @@ WORKDIR /app
|
|||||||
# Copy package files
|
# Copy package files
|
||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
|
|
||||||
# Install only production dependencies with clean cache
|
# Install only production dependencies
|
||||||
RUN npm ci --prefer-offline --no-audit --omit=dev
|
RUN npm install --production --legacy-peer-deps
|
||||||
|
|
||||||
# Copy built application from builder stage
|
# Copy built application from builder stage
|
||||||
COPY --from=builder /app/.output ./.output
|
COPY --from=builder /app/.output ./.output
|
||||||
|
|||||||
Reference in New Issue
Block a user