Update Dockerfile.next

This commit is contained in:
Andras Bacsai
2024-04-18 11:19:39 +02:00
committed by GitHub
parent 8217be475e
commit fc4c47fbbe

View File

@@ -32,10 +32,9 @@ WORKDIR /app
# Copy package.json and pnpm-lock.yaml before other files
# Utilise Docker cache to save re-installing dependencies if unchanged
COPY package.json ./
COPY package-lock.json ./
# Install dependencies
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install
# Build the Next.js app
FROM nodeenv AS builder