Skip to content

fix(docker): remove deno glibc libs that break apk triggers#269

Merged
raaymax merged 1 commit into
devfrom
fix/docker-arm64-build-v2
Feb 9, 2026
Merged

fix(docker): remove deno glibc libs that break apk triggers#269
raaymax merged 1 commit into
devfrom
fix/docker-arm64-build-v2

Conversation

@raaymax
Copy link
Copy Markdown
Owner

@raaymax raaymax commented Feb 9, 2026

Summary

  • Replace LD_LIBRARY_PATH workaround with removing Deno's glibc-linked libs entirely
  • LD_LIBRARY_PATH=/usr/lib fixed apk itself but post-install triggers (glib, shared-mime-info, gdk-pixbuf) spawn subprocesses that don't inherit it
  • Now removes /usr/local/lib/lib*.so* before running apk, so all system tools use Alpine's musl libs
  • Fixes CI failure on PR chore: release v3.5.0 #233 (both amd64 and arm64)

Context

Deno Alpine image ships glibc-linked libz.so.1, libcrypto.so.3, libgcc_s.so.1 in /usr/local/lib/ that shadow Alpine's musl-based system libraries. The Deno binary itself is statically linked and doesn't need them.

Upstream issue: denoland/deno_docker#373

Test plan

  • Verify Docker build succeeds on both amd64 and arm64 in CI
  • Verify Deno still runs correctly after lib removal

@raaymax raaymax merged commit d61b9cb into dev Feb 9, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant