fix(build): apt 换清华镜像源,修复 Docker Hub/Debian 源超时构建失败

- 两个 apt 安装阶段(backend-builder / runner)先切 mirrors.tuna.tsinghua.edu.cn
- CHANGELOG.md 同步补录构建修复条目
This commit is contained in:
Hermes Agent committed 2026-11-13 10:27:54 +08:00
1 parent 5c4f8bfeb4
commit 7970c70b4e
2 files changed
+7 -2

No files matched your search

+1
View File
@@ -9,6 +9,7 @@
- 🐛 修复:添加素材库报 `Internal server error`(`LibraryService.js` 使用 `logger` 但未 require,已补引用)
- 🐛 修复:只读挂载的素材目录添加失败(移除创建测试文件的写权限校验,仅验证可读,素材库允许 `:ro` 挂载)
- 🐛 修复:中文路径素材库提示 `Path does not exist`(compose 挂载示例支持任意中文目录,容器内路径与宿主机一致)
- 🔨 构建:apt 换清华镜像源,修复 Docker Hub / Debian 官方源超时导致的镜像构建失败
- 🎨 样式:瀑布流点击逻辑保持原交互并补充注释 —— 单击选中、Ctrl/Shift 多选、双击放大预览
## 2026-03-27 → v1.0.0(上游)
+6 -2
View File
@@ -9,7 +9,9 @@ RUN npm install --legacy-peer-deps && npm run build
FROM node:22-slim AS backend-builder
# 安装编译工具(better-sqlite3 / sharp 需要)
RUN apt-get update && apt-get install -y --no-install-recommends \
RUN sed -i 's|deb.debian.org|mirrors.tuna.tsinghua.edu.cn|g' /etc/apt/sources.list.d/debian.sources 2>/dev/null; \
sed -i 's|deb.debian.org|mirrors.tuna.tsinghua.edu.cn|g' /etc/apt/sources.list 2>/dev/null; \
apt-get update && apt-get install -y --no-install-recommends \
python3 make g++ build-essential \
libvips-dev \
&& rm -rf /var/lib/apt/lists/*
@@ -24,7 +26,9 @@ FROM node:22-slim AS runner
WORKDIR /app
# 运行时依赖:sharp + tesseract OCR + 中英文语言包
RUN apt-get update && apt-get install -y --no-install-recommends \
RUN sed -i 's|deb.debian.org|mirrors.tuna.tsinghua.edu.cn|g' /etc/apt/sources.list.d/debian.sources 2>/dev/null; \
sed -i 's|deb.debian.org|mirrors.tuna.tsinghua.edu.cn|g' /etc/apt/sources.list 2>/dev/null; \
apt-get update && apt-get install -y --no-install-recommends \
libvips-dev \
tesseract-ocr \
tesseract-ocr-chi-sim \