Commit ead6312
build: harden docker image for scanner findings (#881)
## Summary
- pin the Ruby and Node base images by digest
- shrink the runtime image by copying only app runtime files and
removing curl-based health checks
- prune Bundler cache and git metadata, remove unnecessary runtime XML
packages, and upgrade runtime zlib
## Verification
- docker compose -f .devcontainer/docker-compose.yml exec -T app make
ready
- docker build -t html2rss/web-security-smoke -f Dockerfile .
- docker run --rm html2rss/web-security-smoke ruby -e 'require
"nokogiri"; puts Nokogiri::VERSION_INFO.to_h'
## Notes
- Nokogiri still loads correctly after removing Alpine runtime
libxml2/libxslt packages.
- curl is no longer shipped in the final runtime image.
- An unrelated local change in AGENTS.md was left unstaged and is not
part of this PR.
---------
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>1 parent ec6673b commit ead6312
1 file changed
Lines changed: 23 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| 2 | + | |
2 | 3 | | |
3 | 4 | | |
4 | | - | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
34 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
35 | 40 | | |
36 | 41 | | |
37 | 42 | | |
| |||
47 | 52 | | |
48 | 53 | | |
49 | 54 | | |
50 | | - | |
51 | | - | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
52 | 65 | | |
53 | 66 | | |
54 | 67 | | |
55 | 68 | | |
56 | 69 | | |
57 | 70 | | |
58 | 71 | | |
59 | | - | |
60 | | - | |
61 | 72 | | |
62 | | - | |
63 | | - | |
| 73 | + | |
64 | 74 | | |
65 | 75 | | |
66 | 76 | | |
| |||
79 | 89 | | |
80 | 90 | | |
81 | 91 | | |
82 | | - | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
83 | 96 | | |
84 | 97 | | |
85 | 98 | | |
0 commit comments