From f578198cf9149cb78db6f4f1840580e419dddd87 Mon Sep 17 00:00:00 2001 From: gitadmin Date: Fri, 8 May 2026 12:55:44 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=20.dockerignore=20?= =?UTF-8?q?=E5=87=8F=E5=B0=8F=20Docker=20=E6=9E=84=E5=BB=BA=E4=B8=8A?= =?UTF-8?q?=E4=B8=8B=E6=96=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 排除 node_modules、.next、data 等目录,解决 Build Cache 膨胀问题。 --- .dockerignore | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .dockerignore diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..4c588db --- /dev/null +++ b/.dockerignore @@ -0,0 +1,34 @@ +# 依赖 —— Dockerfile 内用 npm ci 安装 +node_modules + +# 构建产物 —— Dockerfile 内用 npm run build 生成 +.next + +# 运行时数据 —— volume 挂载 +data +uploads +reports +db-backups + +# 开发工具 +.claude +.playwright-mcp +.superpowers +.git +.gitignore +Dockerfile +docker-compose.yml +Caddyfile +.env +.env.* +.DS_Store + +# 文档 +*.md +*.png +docs +CHANGELOG.md +README.md + +# 构建缓存 +tsconfig.tsbuildinfo