git clone https://github.com/ronald2wing/.dockerignore.git
cd .dockerignore
git checkout -b feature/new-template-name- Choose the correct directory:
frameworks/,languages/,common/,tools/,ides/, oros/. - Copy an existing template from that same directory — do not invent a new format.
- Follow TEMPLATE_STANDARDS.md exactly for structure, naming, labels, and section order.
- Category-specific rules:
- Framework templates: Security section must be first.
- Language templates: Must NOT include security patterns. Users add
common/security.dockerignore.
All formatting, naming, and structural rules are specified in TEMPLATE_STANDARDS.md.
# Create a test project
rm -rf /tmp/test-dockerignore && mkdir /tmp/test-dockerignore && cd /tmp/test-dockerignore
echo 'FROM alpine:latest' > Dockerfile
# Copy your template and create test files
cp ../path/to/your-template.dockerignore .dockerignore
touch .env .env.local test.log debug.log
mkdir -p node_modules build dist .vscode
# Test the build
docker build --no-cache .- One template or fix per pull request.
- Use a clear, specific title:
Add template for [Name]orFix [description]. - Include:
- What the template covers (and what it deliberately omits)
- Build output showing the template works
- Duplicate pattern check results
- References to official docs or community patterns
- Respond to reviewer feedback.
- Correct directory, file name, and structure per TEMPLATE_STANDARDS.md
- Pattern accuracy — no missing common files, no false exclusions
- Security section present and first (frameworks only)
- No duplicate patterns
- Clean, concise comments
- Issues: GitHub Issues
- Discussions: GitHub Discussions
Be respectful, constructive, and inclusive.