优化部署配置:修复端口、优化前端依赖、更新docker-compose
Some checks failed
Deploy to Server / deploy (push) Failing after 50m2s

This commit is contained in:
爽哒哒
2026-03-19 18:55:35 +08:00
parent d7a18b209f
commit f33b188922
4 changed files with 37 additions and 109 deletions

View File

@@ -7,10 +7,10 @@ RUN apk add --no-cache autoconf automake libtool make g++ zlib-dev nasm python3
# 设置工作目录
WORKDIR /app
# 安装依赖(使用缓存层)
# 安装依赖(使用缓存层,只安装生产依赖
COPY package.json package-lock.json* ./
RUN --mount=type=cache,target=/root/.npm \
npm install --registry=https://registry.npmmirror.com --prefer-offline
npm ci --omit=dev --no-audit --no-fund --registry=https://registry.npmmirror.com --prefer-offline
# 复制项目文件
COPY . .

View File

@@ -10,11 +10,15 @@
"preview": "vite preview"
},
"dependencies": {
"@ant-design/icons": "^6.1.0",
"@react-three/drei": "^10.7.7",
"@react-three/fiber": "^9.5.0",
"@tanstack/react-query": "^5.90.21",
"@uiw/react-md-editor": "^4.0.11",
"antd": "^6.2.2",
"axios": "^1.13.4",
"canvas-confetti": "^1.9.4",
"classnames": "^2.5.1",
"framer-motion": "^12.29.2",
"github-markdown-css": "^5.9.0",
"jszip": "^3.10.1",
@@ -31,27 +35,25 @@
"three": "^0.182.0"
},
"devDependencies": {
"@ant-design/icons": "^6.1.0",
"@eslint/js": "^9.39.1",
"@types/react": "^19.2.5",
"@types/react-dom": "^19.2.3",
"@vitejs/plugin-react": "^5.1.1",
"eslint": "^9.39.1",
"eslint-plugin-react-hooks": "^7.0.1",
"eslint-plugin-react-refresh": "^0.4.24",
"globals": "^16.5.0",
"less": "^4.5.1",
"vite": "^6.0.0",
"vite-plugin-imagemin": "^0.6.1"
},
"optionalDependencies": {
"@storybook/addon-essentials": "^8.6.4",
"@storybook/addon-interactions": "^8.6.4",
"@storybook/blocks": "^8.6.4",
"@storybook/react": "^8.6.4",
"@storybook/react-vite": "^8.6.4",
"@storybook/test": "^8.6.4",
"@tanstack/react-query": "^5.90.21",
"@types/react": "^19.2.5",
"@types/react-dom": "^19.2.3",
"@vitejs/plugin-react": "^5.1.1",
"canvas-confetti": "^1.9.4",
"classnames": "^2.5.1",
"eslint": "^9.39.1",
"eslint-plugin-react-hooks": "^7.0.1",
"eslint-plugin-react-refresh": "^0.4.24",
"globals": "^16.5.0",
"less": "^4.5.1",
"storybook": "^8.6.4",
"vite": "^6.0.0",
"vite-plugin-imagemin": "^0.6.1"
"storybook": "^8.6.4"
}
}