From e778312b319f614e90e548a4ca4097982b176c31 Mon Sep 17 00:00:00 2001 From: Abhinav Ramakrishnan <76396917+Abhinav-ark@users.noreply.github.com> Date: Tue, 15 Oct 2024 00:24:59 +0530 Subject: [PATCH] Add --force to npm clean install --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 6d51669..9a82e7c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,7 +10,7 @@ WORKDIR /app COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* ./ RUN \ if [ -f yarn.lock ]; then yarn --frozen-lockfile; \ - elif [ -f package-lock.json ]; then npm ci; \ + elif [ -f package-lock.json ]; then npm ci --force; \ elif [ -f pnpm-lock.yaml ]; then corepack enable pnpm && pnpm i --frozen-lockfile; \ else echo "Lockfile not found." && exit 1; \ fi