chore: 同步本地更改
- 新增 aio-mcp 项目框架 - 新增 .trae/skills/ OCR/SKU 设计工具 - 更新 auto-check 配置和 stress 包 - 删除 fnhelp 文档目录 - 更新 Docker 压力测试脚本
This commit is contained in:
@@ -32,20 +32,34 @@ FROM debian:12-slim
|
||||
ENV LANG=C.UTF-8 LC_ALL=C.UTF-8
|
||||
|
||||
# 清理缓存,减少镜像体积
|
||||
# - python3/python3-psutil/memtester/stress/sudo:fnscript 稳定性门禁的依赖
|
||||
# (self_inspection.py 调 psutil 计算测试内存、sudo memtester 做数据校验、
|
||||
# stress 做 CPU 压测;脚本原样收录在 vendor/fnscript/,源码不做修改)
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
stress-ng \
|
||||
fio \
|
||||
lm-sensors \
|
||||
sysstat \
|
||||
procps \
|
||||
python3 \
|
||||
python3-psutil \
|
||||
memtester \
|
||||
stress \
|
||||
sudo \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# 验证工具安装
|
||||
RUN stress-ng --version && fio --version && sensors --version
|
||||
RUN stress-ng --version && fio --version && sensors --version \
|
||||
&& python3 -c "import psutil; print('psutil', psutil.__version__)" \
|
||||
&& command -v memtester && command -v stress && command -v sudo
|
||||
|
||||
# 复制测试脚本到镜像中
|
||||
COPY scripts/ /scripts/
|
||||
|
||||
# fnscript 稳定性测试脚本(社区脚本 vendor 收录,源码不改,见 vendor/fnscript/README.md)
|
||||
COPY vendor/fnscript/script/self_inspection.py /vendor/fnscript/self_inspection.py
|
||||
COPY vendor/fnscript/LICENSE /vendor/fnscript/LICENSE
|
||||
|
||||
# 设置脚本执行权限
|
||||
RUN chmod +x /scripts/*.sh
|
||||
|
||||
|
||||
Reference in New Issue
Block a user