build: Add .npmrc to Dockerfile COPY instruction.

This commit is contained in:
kuekhaoyang
2025-12-06 13:12:15 +08:00
parent cd036e5059
commit 103dd69df9
+1 -1
View File
@@ -8,7 +8,7 @@ RUN apk add --no-cache libc6-compat
WORKDIR /app
# Install dependencies based on the preferred package manager
COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* ./
COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* .npmrc* ./
RUN \
if [ -f yarn.lock ]; then yarn --frozen-lockfile; \
elif [ -f package-lock.json ]; then npm ci; \