build: 添加 Docker 配置文件和忽略文件
添加 Dockerfile 用于构建和运行 Node.js 应用,同时添加 .dockerignore 文件排除不必要的文件和目录
This commit is contained in:
@@ -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*
|
||||
Reference in New Issue
Block a user