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