fix(docker): copy .npmrc and use npmmirror registry for fast builds
This commit is contained in:
@@ -1 +1 @@
|
|||||||
registry=https://package-mirror.liara.ir/repository/npm/
|
registry=https://registry.npmmirror.com/
|
||||||
|
|||||||
+2
-2
@@ -7,9 +7,9 @@ FROM node:22-alpine AS dependencies
|
|||||||
|
|
||||||
WORKDIR /app
|
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
|
# Stage 2: Production runtime image
|
||||||
|
|||||||
Reference in New Issue
Block a user