修复前端环境依赖的问题

This commit is contained in:
Wenjie Zhang 2024-11-23 11:13:58 +08:00
parent 8e347a34ee
commit 5c9d4b21cf
2 changed files with 4 additions and 4 deletions

View File

@ -6,7 +6,7 @@ WORKDIR /app
COPY ./web/package*.json ./ COPY ./web/package*.json ./
# 安装依赖 # 安装依赖
RUN npm install --registry https://registry.npmmirror.com RUN npm install --registry https://registry.npmmirror.com --verbose --force
# 复制源代码 # 复制源代码
COPY ./web . COPY ./web .
@ -21,7 +21,7 @@ FROM node:22.10.0 AS build-stage
WORKDIR /app WORKDIR /app
COPY ./web/package*.json ./ COPY ./web/package*.json ./
RUN npm install --registry https://registry.npmmirror.com RUN npm install --registry https://registry.npmmirror.com --force
COPY ./web . COPY ./web .
RUN npm run build RUN npm run build

View File

@ -24,14 +24,14 @@
"marked": "^13.0.2", "marked": "^13.0.2",
"marked-highlight": "^2.1.4", "marked-highlight": "^2.1.4",
"pinia": "^2.0.32", "pinia": "^2.0.32",
"vue": "^3.2.47", "vue": "^3.5.13",
"vue-router": "^4.1.6" "vue-router": "^4.1.6"
}, },
"devDependencies": { "devDependencies": {
"@rushstack/eslint-patch": "^1.2.0", "@rushstack/eslint-patch": "^1.2.0",
"@vitejs/plugin-vue": "^4.0.0", "@vitejs/plugin-vue": "^4.0.0",
"@vue/eslint-config-prettier": "^7.1.0", "@vue/eslint-config-prettier": "^7.1.0",
"eslint": "^8.34.0", "eslint": "^9.15.0",
"eslint-plugin-vue": "^9.9.0", "eslint-plugin-vue": "^9.9.0",
"prettier": "^2.8.4", "prettier": "^2.8.4",
"vite": "^4.1.4" "vite": "^4.1.4"