fix: remove problematic npmmirror registry from Dockerfiles
This commit is contained in:
1 parent
eb5250e9f3
commit
cb61bd2ea2
2 files changed
-3
No files matched your search
@@ -6,7 +6,6 @@ WORKDIR /app
|
||||
# 复制依赖文件
|
||||
# 复制依赖文件
|
||||
COPY package*.json ./
|
||||
RUN npm config set registry https://registry.npmmirror.com
|
||||
RUN npm install
|
||||
|
||||
# 复制源代码并构建
|
||||
@@ -24,7 +23,6 @@ RUN apk add --no-cache vips-dev ffmpeg
|
||||
|
||||
# 复制依赖
|
||||
COPY package*.json ./
|
||||
RUN npm config set registry https://registry.npmmirror.com
|
||||
RUN npm install --omit=dev
|
||||
|
||||
# 复制构建产物
|
||||
|
||||
@@ -5,7 +5,6 @@ WORKDIR /app
|
||||
|
||||
# 安装依赖
|
||||
COPY package*.json ./
|
||||
RUN npm config set registry https://registry.npmmirror.com
|
||||
RUN npm ci
|
||||
|
||||
# 复制源代码
|
||||
|
||||
Reference in new issue
Block a user