This commit is contained in:
@@ -16,7 +16,7 @@ WORKDIR /app
|
||||
|
||||
|
||||
# Install dependencies based on the preferred package manager
|
||||
COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* .npmrc* ./
|
||||
COPY package*.json ./
|
||||
RUN \
|
||||
if [ -f yarn.lock ]; then yarn install --immutable; \
|
||||
elif [ -f package-lock.json ]; then npm ci; \
|
||||
@@ -28,7 +28,7 @@ RUN \
|
||||
# Rebuild the source code only when needed
|
||||
FROM base AS builder
|
||||
WORKDIR /app
|
||||
COPY --from=deps /app/node_modules ./node_modules
|
||||
# COPY --from=deps /app/node_modules ./node_modules
|
||||
COPY . .
|
||||
|
||||
# Next.js collects completely anonymous telemetry data about general usage.
|
||||
|
||||
Reference in New Issue
Block a user