Commit 1340c6ff by zhangxingmin

push

parent 49de7979
...@@ -6,11 +6,13 @@ WORKDIR /app ...@@ -6,11 +6,13 @@ WORKDIR /app
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories \ RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories \
&& apk add --no-cache python3 make g++ && apk add --no-cache python3 make g++
# 只复制package.json(避免lockfile冲突) # 只复制package.json
COPY package.json ./ COPY package.json ./
# 关键:强制使用npm官方源(确保能找到2.x版本)+ 清理缓存 # 关键:强制刷新npm版本索引+延长超时时间(避免安装超时)
RUN npm config set registry https://registry.npmjs.org \ RUN npm config set registry https://registry.npmjs.org \
&& npm config set fetch-retry-mintimeout 60000 \
&& npm config set fetch-retry-maxtimeout 120000 \
&& npm cache clean --force \ && npm cache clean --force \
&& npm install --legacy-peer-deps && npm install --legacy-peer-deps
......
...@@ -27,12 +27,12 @@ ...@@ -27,12 +27,12 @@
"js-sha256": "^0.11.1", "js-sha256": "^0.11.1",
"nanoid": "^4.0.0", "nanoid": "^4.0.0",
"vue": "^2.6.14", "vue": "^2.6.14",
"@dcloudio/uni-app": "^2.0.0" "@dcloudio/uni-app": "^3.0.0"
}, },
"devDependencies": { "devDependencies": {
"@dcloudio/uni-h5": "^2.0.0", "@dcloudio/uni-h5": "^3.0.0",
"@dcloudio/uni-cli-service": "^2.0.0", "@dcloudio/uni-cli-service": "^3.0.0",
"@dcloudio/vue-cli-plugin-uni": "^2.0.0", "@dcloudio/vue-cli-plugin-uni": "^3.0.0",
"less": "^4.3.0" "less": "^4.3.0"
} }
} }
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