From 0332aef3d46c0624aef36a90327b668b0882ff22 Mon Sep 17 00:00:00 2001 From: claude_dev Date: Sat, 1 Aug 2026 19:20:12 +0800 Subject: [PATCH] =?UTF-8?q?fix(docker):=20=E5=8A=A0=20.dockerignore=20?= =?UTF-8?q?=E7=98=A6=E8=BA=AB=E6=9E=84=E5=BB=BA=E4=B8=8A=E4=B8=8B=E6=96=87?= =?UTF-8?q?(1.9G=E2=86=92~50MB)+Dockerfile=20apt=E6=B8=85=E5=8D=8E?= =?UTF-8?q?=E9=95=9C=E5=83=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit NAS容器bind-mount提供代码/data,镜像只需Python+依赖层; 排除data_cache/frontend/venv/logs/.git等;治上下文发送慢+输出不可监控 --- .dockerignore | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .dockerignore diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..ee0bcea --- /dev/null +++ b/.dockerignore @@ -0,0 +1,24 @@ +# 镜像构建上下文瘦身:NAS 容器 bind-mount /app 提供代码与数据, +# 镜像只需 Python + 依赖层,下列大目录/文件不进上下文(1.9G → ~50MB)。 +data_cache/ +data/ +frontend/ +venv/ +venv310/ +logs/ +*.log +bt_*.log +.git/ +.gitignore +__pycache__/ +*.pyc +*.pyo +*.pyd +.DS_Store +*.db +*.sqlite +*.parquet +# 构建产物/临时 +*.egg-info/ +.pytest_cache/ +.cache/