Commit 1300ec3
committed
fix: replace COPY . . with explicit directory copies in Dockerfile
- Replace insecure COPY . . with explicit COPY src/ and COPY data/config/
- Prevents copying sensitive files (.env, secrets, git, tests, docs)
- Addresses CWE-668 and CWE-497 security vulnerabilities
- Maintains .dockerignore as defense-in-depth measure1 parent 4028e94 commit 1300ec3
1 file changed
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
73 | 75 | | |
74 | 76 | | |
75 | 77 | | |
| |||
0 commit comments