Skip to content

Commit 72ffc71

Browse files
agarctficlaude
andcommitted
fix(docker): add coreutils so MAX_LIFETIME_SECONDS works on Wolfi base
scripts/app-start.sh invokes GNU `timeout` with --preserve-status and --foreground when MAX_LIFETIME_SECONDS is set. The Wolfi base only ships BusyBox `timeout`, which rejects those flags, so the server never starts and the container restart-loops. GNU coreutils rode in for free on the old RockyLinux base and was lost in the RockyLinux -> Wolfi switch (PR #423). Add coreutils to the image to restore GNU `timeout`. Verified against the real app-start.sh: the server now starts and runs for the full lifetime. grype shows adding coreutils introduces 0 new CVEs (6 Chainguard-maintained packages, ~10 MB). Reported in Pylon 2657. Fixes ENG-1428. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent b887028 commit 72ffc71

3 files changed

Lines changed: 8 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 0.1.11
2+
3+
### Fixes
4+
5+
- **Restore `MAX_LIFETIME_SECONDS` support in the Docker image**: `scripts/app-start.sh` invokes GNU `timeout` with `--preserve-status` and `--foreground`, flags the Wolfi base's BusyBox `timeout` does not support. Setting `MAX_LIFETIME_SECONDS` therefore caused the server to fail to start and the container to restart-loop. Added `coreutils` to the image so GNU `timeout` is available. This regressed when the base image moved from RockyLinux (which shipped GNU coreutils) to Wolfi.
6+
17
## 0.1.10
28

39
### Fixes

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ USER root
1717

1818
RUN apk update && \
1919
apk add libxml2 python-3.12 python-3.12-base glib \
20-
mesa-gl mesa-libgallium cmake bash libmagic wget git openjpeg \
20+
mesa-gl mesa-libgallium cmake bash coreutils libmagic wget git openjpeg \
2121
poppler poppler-utils poppler-glib libreoffice tesseract && \
2222
git clone --depth 1 https://github.com/tesseract-ocr/tessdata.git /tmp/tessdata && \
2323
mkdir -p /usr/local/share/tessdata && \
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.1.10" # pragma: no cover
1+
__version__ = "0.1.11" # pragma: no cover

0 commit comments

Comments
 (0)