Commit adebb318 by zhangxingmin

push

parent 4a96f694
...@@ -29,15 +29,15 @@ WORKDIR /app ...@@ -29,15 +29,15 @@ WORKDIR /app
# 复制包管理文件 # 复制包管理文件
COPY package.json package-lock.json ./ COPY package.json package-lock.json ./
# 1. 显式安装 esbuild 二进制 # 1. 显式安装 esbuild 二进制 (添加 --legacy-peer-deps)
RUN npm install @esbuild/linux-x64 --verbose --registry=https://registry.npmmirror.com RUN npm install @esbuild/linux-x64 --verbose --legacy-peer-deps --registry=https://registry.npmmirror.com
# 2. 安装其他原生模块 # 2. 安装原生模块 (添加 --legacy-peer-deps)
RUN npm install canvas@2.11.2 --verbose --ignore-scripts RUN npm install canvas@2.11.2 --verbose --ignore-scripts --legacy-peer-deps
RUN npm install sharp@0.32.6 --verbose --ignore-scripts RUN npm install sharp@0.32.6 --verbose --ignore-scripts --legacy-peer-deps
# 3. 安装项目依赖(移除 --no-optional) # 3. 安装项目依赖 (添加 --legacy-peer-deps)
RUN npm install --verbose --registry=https://registry.npmmirror.com RUN npm install --verbose --legacy-peer-deps --registry=https://registry.npmmirror.com
# 4. 验证 esbuild 安装 # 4. 验证 esbuild 安装
RUN ls -la node_modules/esbuild/bin && \ RUN ls -la node_modules/esbuild/bin && \
......
...@@ -72,7 +72,7 @@ ...@@ -72,7 +72,7 @@
}, },
"devDependencies": { "devDependencies": {
"less": "^4.3.0", "less": "^4.3.0",
"@vitejs/plugin-vue": "^4.5.2", "@vitejs/plugin-vue": "4.5.2",
"@vitejs/plugin-vue-jsx": "^3.0.1", "@vitejs/plugin-vue-jsx": "^3.0.1",
"@vue/babel-plugin-jsx": "^1.1.1", "@vue/babel-plugin-jsx": "^1.1.1",
"@vue/compat": "^3.2.47", "@vue/compat": "^3.2.47",
...@@ -82,11 +82,11 @@ ...@@ -82,11 +82,11 @@
"terser": "^5.17.7", "terser": "^5.17.7",
"unplugin-auto-import": "^0.15.3", "unplugin-auto-import": "^0.15.3",
"unplugin-vue-components": "^0.24.1", "unplugin-vue-components": "^0.24.1",
"vite": "^4.5.15", "vite": "4.5.15",
"vite-plugin-cdn-import": "^0.3.5", "vite-plugin-cdn-import": "^0.3.5",
"vite-plugin-compression": "^0.5.1", "vite-plugin-compression": "^0.5.1",
"vite-plugin-image-optimizer": "^1.1.6", "vite-plugin-image-optimizer": "^1.1.6",
"vite-plugin-require-transform": "^1.0.12", "vite-plugin-require-transform": "^1.0.12",
"vite-plugin-svg-icons": "^2.0.1" "vite-plugin-svg-icons": "2.0.1"
} }
} }
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