# .dockerignore — Docker Fundamentals: Images, Containers और Compose

Source: https://www.skillbyai.com/hi/docker/docker-dockerignore

> Build context से files बाहर करके .dockerignore से builds तेज़ करें और secrets लीक होने से बचें।

## फ़ाइलें बाहर रखना

`.gitignore` की तरह, `.dockerignore` फ़ाइल `node_modules` और `.git` जैसे फ़ोल्डर को बिल्ड कॉन्टेक्स्ट से बाहर रखती है — तेज़ बिल्ड, छोटी इमेज, कोई लीक हुआ सीक्रेट नहीं।

```text
node_modules
.git
.env
dist
*.log
Dockerfile
.dockerignore
```
