Skip to content

Commit 3f245cf

Browse files
jgallowa07claude
andcommitted
Add .dockerignore to reduce build context size and fix CI disk space error
The Docker build context was including .git directories (including submodules), which added 500+ MB of unnecessary data. This caused 'no space left on device' errors in GitHub Actions runners. The .dockerignore file excludes: - .git directories (saves ~500MB from revbayes submodule alone) - Build artifacts (_build/, output/, *.o, *.a) - Python cache files - Documentation and IDE files - CI/CD files This reduces build context size and speeds up builds by avoiding copying unnecessary files to Docker daemon. Note: Git info for commit logging will not be available in container builds, but this is acceptable for CI/production builds. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 95158bb commit 3f245cf

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.dockerignore

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Git directories (including submodules) - can be hundreds of MB
2+
.git
3+
.gitignore
4+
.gitmodules
5+
6+
# Build artifacts
7+
_build/
8+
output/
9+
*.o
10+
*.a
11+
*.so
12+
*.dylib
13+
14+
# Python cache
15+
__pycache__/
16+
*.py[cod]
17+
*$py.class
18+
*.egg-info/
19+
.pytest_cache/
20+
21+
# Documentation
22+
html/
23+
latex/
24+
Doxyfile
25+
26+
# IDE and editor files
27+
.vscode/
28+
.idea/
29+
*.swp
30+
*.swo
31+
*~
32+
33+
# CI/CD
34+
.github/
35+
36+
# Docker files
37+
Dockerfile.base
38+
.dockerignore
39+
40+
# Test outputs
41+
*.log

0 commit comments

Comments
 (0)