diff --git a/nextjs/spa/Dockerfile.next b/nextjs/spa/Dockerfile.next index 5100ad3..0009c29 100644 --- a/nextjs/spa/Dockerfile.next +++ b/nextjs/spa/Dockerfile.next @@ -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