build: 添加 Docker 配置文件和忽略文件

添加 Dockerfile 用于构建和运行 Node.js 应用,同时添加 .dockerignore 文件排除不必要的文件和目录
This commit is contained in:
2026-04-28 13:10:04 +08:00
parent 8845c8293d
commit 6aa61cc78f
2 changed files with 68 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
# 依赖目录
node_modules/
# 编译产出目录
.output/
.nuxt/
# 环境变量文件(通常不应该被打包进去)
.env
.env.*
# Git 相关
.git/
.gitignore
# 系统相关
.DS_Store
Thumbs.db
# 日志
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*