fix(docker): copy .npmrc and use npmmirror registry for fast builds
This commit is contained in:
+2
-2
@@ -7,9 +7,9 @@ FROM node:22-alpine AS dependencies
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
COPY package*.json ./
|
||||
COPY package*.json .npmrc* ./
|
||||
|
||||
RUN npm ci --omit=dev && npm cache clean --force
|
||||
RUN npm ci --omit=dev --registry=https://registry.npmmirror.com && npm cache clean --force
|
||||
|
||||
# ------------------------------------------------------------------------------
|
||||
# Stage 2: Production runtime image
|
||||
|
||||
Reference in New Issue
Block a user