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/
|
||||
|
||||
+3
-3
@@ -3,9 +3,9 @@ FROM node:22-alpine
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Copy package descriptors and install dependencies
|
||||
COPY package*.json ./
|
||||
RUN npm ci
|
||||
# Copy package descriptors and npm configuration
|
||||
COPY package*.json .npmrc* ./
|
||||
RUN npm ci --registry=https://registry.npmmirror.com
|
||||
|
||||
# Copy application source code
|
||||
COPY . .
|
||||
|
||||
Reference in New Issue
Block a user