Commit 459e5b9f by zhangxingmin

push

parent a1450df1
...@@ -2,8 +2,12 @@ FROM node:16 ...@@ -2,8 +2,12 @@ FROM node:16
WORKDIR /app WORKDIR /app
# 安装项目依赖(包含开发依赖) # 清理旧依赖
RUN rm -rf node_modules package-lock.json
# 安装依赖
COPY package*.json ./ COPY package*.json ./
RUN npm cache clean --force
RUN npm install --include=dev --legacy-peer-deps RUN npm install --include=dev --legacy-peer-deps
# 复制源码并构建 # 复制源码并构建
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment