Commit f73143d
fix(docker): purge uv wheel cache after opencv swap [security]
The 0.1.4 fix uninstalled opencv-python and installed the ffmpeg-free
replacement, but the original wheel's extracted contents remained in
~/.cache/uv/archive-v0/.../opencv_python.libs/ (libavcodec.so.59.*,
libavformat, libavutil, libswscale, libswresample, libavfilter,
libavdevice). Image scanners walk the whole filesystem and still flagged
the 14 ffmpeg CVEs from those cache files even though nothing links
against them at runtime.
Add `uv cache clean` at the end of the opencv replacement RUN so the
vulnerable libs are evicted from the final image layer. Safe because
UV_LINK_MODE=copy ensures installed files are independent copies, not
cache hardlinks.
Bumps service version 0.1.4 -> 0.1.5.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 03b57e0 commit f73143d
3 files changed
Lines changed: 16 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
1 | 7 | | |
2 | 8 | | |
3 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
113 | 113 | | |
114 | 114 | | |
115 | 115 | | |
116 | | - | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
117 | 125 | | |
118 | 126 | | |
119 | 127 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
0 commit comments