Commit 7f40069
committed
Patch base-image CVEs and unblock tts-qwen-cuda build
The v1.1.0 docker-publish workflow flagged 22 CVEs in the Alpine and
Ubuntu bases of the published images (2 critical OpenSSL + 20 high
across libpng, libexpat, musl, nghttp2, zlib, OpenSSL libssl3/
libcrypto3). All in OS-level packages; real exploit surface is
limited for our deployment because TLS terminates at CF Pages, not in
the container, but better to ship clean bases.
Add base-image security upgrades on top of each upstream:
client/Dockerfile apk upgrade --no-cache (Alpine)
docker/tts-kokoro/Dockerfile apt-get upgrade -y (Debian 13)
docker/stt-whisper/Dockerfile apt-get upgrade -y (Ubuntu)
docker/tts-qwen-cuda/Dockerfile apt-get upgrade -y (Ubuntu 22.04)
Also unblock the tts-qwen-cuda build, which failed entirely on
v1.1.0. Two compounding issues:
1. `sox` system binary missing. The Python `sox` package
(transitive dep of faster-qwen3-tts) calls `sox --version`
during setup.py. Add `sox` to the apt-get install line.
2. Numpy bootstrap. The Python `sox` package's setup.py imports
its own module to read __version__, which transitively imports
numpy. Without numpy already on disk, pip's metadata-generation
step for sox fails before sox itself can be installed. Split
the pip install into three steps so numpy is present when
sox's egg_info runs:
pip install torch (existing pin)
pip install numpy (NEW pre-seed)
pip install faster-qwen3-tts ... (the rest)
Verified by rebuilding tts-qwen-cuda locally on Apple Silicon (arm64
emulation) with --no-cache. The other three images use well-known
base-image upgrade patterns and rely on the existing CI workflow for
validation.1 parent 78fbc78 commit 7f40069
4 files changed
Lines changed: 22 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
59 | 62 | | |
60 | 63 | | |
61 | 64 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| 32 | + | |
| 33 | + | |
32 | 34 | | |
33 | 35 | | |
34 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
26 | 30 | | |
27 | 31 | | |
28 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
19 | 22 | | |
20 | 23 | | |
21 | 24 | | |
| |||
25 | 28 | | |
26 | 29 | | |
27 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
28 | 38 | | |
29 | 39 | | |
30 | 40 | | |
| |||
0 commit comments