mirror of
https://github.com/lintsinghua/DeepAudit.git
synced 2026-09-24 23:23:44 +08:00
- 后端使用 uv 管理依赖,镜像内包含所有依赖 - 前端使用生产构建 + serve 提供静态文件 - 添加 WeasyPrint 完整系统依赖 - 修复 PDF 报告 Logo 显示问题 - 添加 .dockerignore 优化构建 - 更新部署文档和 GitHub Actions 工作流 - 前端端口从 5173 改为 3000
11 lines
255 B
Bash
11 lines
255 B
Bash
#!/bin/sh
|
|
|
|
# 替换 API 地址占位符
|
|
API_URL="${VITE_API_BASE_URL:-http://localhost:8000/api/v1}"
|
|
|
|
# 在所有 JS 文件中替换占位符
|
|
find /app/dist -name '*.js' -exec sed -i "s|__API_BASE_URL__|${API_URL}|g" {} \;
|
|
|
|
# 执行原始命令
|
|
exec "$@"
|