Skip to content

Commit acaf857

Browse files
committed
feat: 新規作成 .dockerignore ファイルを追加し、Dockerビルドの最適化を図る
1 parent e26a419 commit acaf857

1 file changed

Lines changed: 142 additions & 0 deletions

File tree

.dockerignore

Lines changed: 142 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,142 @@
1+
############################################################
2+
# Production-ready .dockerignore for a Next.js (Vercel-style) app
3+
# Keeps Docker builds fast, lean, and free of development files.
4+
############################################################
5+
6+
# Dependencies (installed inside Docker, never copied)
7+
node_modules/
8+
.pnpm-store/
9+
npm-debug.log*
10+
yarn-debug.log*
11+
yarn-error.log*
12+
pnpm-debug.log*
13+
lerna-debug.log*
14+
15+
# Next.js build outputs (always generated during `next build`)
16+
.next/
17+
out/
18+
dist/
19+
build/
20+
.vercel/
21+
22+
# Tests and testing output (not needed in production images)
23+
coverage/
24+
.nyc_output/
25+
__tests__/
26+
__mocks__/
27+
jest/
28+
cypress/
29+
cypress/screenshots/
30+
cypress/videos/
31+
playwright-report/
32+
test-results/
33+
.vitest/
34+
vitest.config.*
35+
jest.config.*
36+
cypress.config.*
37+
playwright.config.*
38+
*.test.*
39+
*.spec.*
40+
41+
# Local development and editor files
42+
.git/
43+
.gitignore
44+
.gitattributes
45+
.vscode/
46+
.idea/
47+
*.swp
48+
*.swo
49+
*~
50+
*.log
51+
52+
# Environment variables (only commit template files)
53+
.env
54+
.env*.local
55+
.env.development
56+
.env.test
57+
.env.production.local
58+
59+
# Docker configuration files (not needed inside build context)
60+
Dockerfile*
61+
.dockerignore
62+
compose.yaml
63+
compose.yml
64+
docker-compose*.yaml
65+
docker-compose*.yml
66+
67+
# Documentation
68+
*.md
69+
docs/
70+
71+
# CI/CD configuration files
72+
.github/
73+
.gitlab-ci.yml
74+
.travis.yml
75+
.circleci/
76+
Jenkinsfile
77+
78+
# Cache directories and temporary data
79+
.cache/
80+
.parcel-cache/
81+
.eslintcache
82+
.stylelintcache
83+
.turbo/
84+
.tmp/
85+
# Cache directories and temporary data
86+
.cache/
87+
.parcel-cache/
88+
.eslintcache
89+
.stylelintcache
90+
.swc/
91+
.turbo/
92+
.tmp/
93+
.temp/
94+
95+
# TypeScript build metadata
96+
*.tsbuildinfo
97+
98+
# Sensitive or unnecessary configuration files
99+
*.pem
100+
.editorconfig
101+
.prettierrc*
102+
prettier.config.*
103+
.eslintrc*
104+
eslint.config.*
105+
.stylelintrc*
106+
stylelint.config.*
107+
.babelrc*
108+
*.iml
109+
*.ipr
110+
*.iws
111+
112+
# OS-specific junk
113+
.DS_Store
114+
._*
115+
.Spotlight-V100
116+
.Trashes
117+
ehthumbs.db
118+
Thumbs.db
119+
Desktop.ini
120+
121+
# AI/ML tool metadata and configs
122+
.cursor/
123+
.cursorrules
124+
.copilot/
125+
.copilotignore
126+
.github/copilot/
127+
.gemini/
128+
.anthropic/
129+
.kiro
130+
.claude
131+
AGENTS.md
132+
.agents/
133+
.coderabbit.yaml
134+
135+
# AI-generated temp files
136+
*.aider*
137+
*.copilot*
138+
*.chatgpt*
139+
*.claude*
140+
*.gemini*
141+
*.openai*
142+
*.anthropic*

0 commit comments

Comments
 (0)