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.
# - 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).
# - 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.
RUN apt-get update && apt-get install -y --no-install-recommends \
cmake \
libclang-dev \
libjpeg-dev \
libtiff-dev \
pkg-config \
&& 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
# 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
COPY --from=build /app /app