fix(docker): install fax build and runtime libraries for Docker images and update release tooling dependencies

This commit is contained in:
2026-05-22 10:38:25 +00:00
parent c18f2f7ca1
commit 690e19eff8
4 changed files with 652 additions and 43 deletions
+7 -1
View File
@@ -8,9 +8,14 @@ FROM code.foss.global/host.today/ht-docker-node:lts AS build
# prebuilt-binary download path doesn't apply. # prebuilt-binary download path doesn't apply.
# - pkg-config : used by audiopus_sys and other *-sys crates to locate libs # - pkg-config : used by audiopus_sys and other *-sys crates to locate libs
# on the native target (safe no-op if they vendor their own). # on the native target (safe no-op if they vendor their own).
# - libtiff-dev/libjpeg-dev : required by spandsp-sys fax/T.38 bindings.
# - libclang-dev: required by bindgen-based Rust build scripts.
# These are normally pre-installed on dev machines but not in ht-docker-node:lts. # These are normally pre-installed on dev machines but not in ht-docker-node:lts.
RUN apt-get update && apt-get install -y --no-install-recommends \ RUN apt-get update && apt-get install -y --no-install-recommends \
cmake \ cmake \
libclang-dev \
libjpeg-dev \
libtiff-dev \
pkg-config \ pkg-config \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
@@ -51,7 +56,8 @@ RUN rm -rf .pnpm-store
FROM code.foss.global/host.today/ht-docker-node:alpine-node AS production FROM code.foss.global/host.today/ht-docker-node:alpine-node AS production
# gcompat + libstdc++ let the glibc-linked proxy-engine binary run on Alpine. # gcompat + libstdc++ let the glibc-linked proxy-engine binary run on Alpine.
RUN apk add --no-cache gcompat libstdc++ # tiff + libjpeg-turbo provide the fax engine's dynamic image codec libs.
RUN apk add --no-cache gcompat libstdc++ libjpeg-turbo tiff
WORKDIR /app WORKDIR /app
COPY --from=build /app /app COPY --from=build /app /app
+10
View File
@@ -2,6 +2,16 @@
## Pending ## Pending
### Fixes
- install fax native libraries in the Docker build and runtime images (docker)
- add TIFF, JPEG, and libclang development packages needed by Rust bindgen/sys crates during multi-arch builds
- add TIFF and JPEG runtime libraries to the Alpine production image for the fax engine
- update release/build tooling before retrying the Docker release
- install fax build and runtime libraries for Docker images and update release tooling dependencies (docker)
- add libclang, libjpeg, and libtiff development packages required for Rust bindgen and fax-related native builds
- add libjpeg-turbo and tiff runtime libraries to the Alpine production image for the fax engine
- bump build and release tooling packages including @git.zone/tsbundle, @git.zone/tsdocker, @git.zone/tsrust, @git.zone/tswatch, and esbuild
## 2026-05-21 - 1.27.0 ## 2026-05-21 - 1.27.0
+5 -5
View File
@@ -23,13 +23,13 @@
"ws": "^8.20.0" "ws": "^8.20.0"
}, },
"devDependencies": { "devDependencies": {
"@git.zone/tsbundle": "^2.10.1", "@git.zone/tsbundle": "^2.10.4",
"@git.zone/tsdocker": "^2.2.5", "@git.zone/tsdocker": "^2.3.0",
"@git.zone/tsrust": "^1.3.3", "@git.zone/tsrust": "^1.3.4",
"@git.zone/tswatch": "^3.3.3", "@git.zone/tswatch": "^3.3.5",
"@types/node": "^25.8.0", "@types/node": "^25.8.0",
"@types/ws": "^8.18.1", "@types/ws": "^8.18.1",
"esbuild": "^0.27.7" "esbuild": "^0.28.0"
}, },
"pnpm": { "pnpm": {
"ignoredBuiltDependencies": [ "ignoredBuiltDependencies": [
+630 -37
View File
File diff suppressed because it is too large Load Diff