From 5b8c08ddfab59e4d1c867df15b4f91343ca30e6e Mon Sep 17 00:00:00 2001 From: project6-dev Date: Wed, 12 Aug 2026 03:42:04 +0000 Subject: [PATCH] =?UTF-8?q?fix(build):=20whitelist=20.dockerignore=20?= =?UTF-8?q?=E2=80=94=20only=20send=20Dockerfile=20+=20computility-run.yaml?= =?UTF-8?q?=20+=20qwen3=5F6=5Fscripts/?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 之前的 .dockerignore 是黑名单模式,漏掉了 ixformer_sdk/(3.6MB) 和 vllm_overrides/ 等目录。 改为白名单模式:排除一切,只保留 Dockerfile 需要的三个路径。 project_7 用同样的三个文件 docker build 成功。 --- .dockerignore | 28 +++++++--------------------- 1 file changed, 7 insertions(+), 21 deletions(-) diff --git a/.dockerignore b/.dockerignore index 2b05bb51..0f46f5e2 100644 --- a/.dockerignore +++ b/.dockerignore @@ -1,21 +1,7 @@ -# Exclude everything not needed for the Docker image -cccl_upstream/ -upstream_ref/ -vllm/ -muh/ -docs/ -optimizations/ -vllm_adapter/ -*.zip -*.txt -*.md -*.json -*.muh -.git/ -.gitignore -__pycache__/ -*.pyc -debug_*.py -verify_*.py -# Keep: qwen3_6_scripts/, computility-run.yaml, Dockerfile, ex_engine/ -ex_engine/ +# Exclude everything +* + +# Only include what Dockerfile needs +!Dockerfile +!computility-run.yaml +!qwen3_6_scripts/