Skip to content

fix(mc): switch Docker from Alpine/musl to Debian/glibc for plugin cdylib#8226

Merged
h0lybyte merged 1 commit intodevfrom
trunk/mc-docker-fix-1773810537
Mar 18, 2026
Merged

fix(mc): switch Docker from Alpine/musl to Debian/glibc for plugin cdylib#8226
h0lybyte merged 1 commit intodevfrom
trunk/mc-docker-fix-1773810537

Conversation

@h0lybyte
Copy link
Member

Summary

  • musl (Alpine) does not support the cdylib crate type needed by the MC plugin .so. This was the real root cause behind [CI] CI - Dev / Dev Docker Build — MC — Failed #8220 — the || true silently masked the compile failure, leaving /built-plugins empty.
  • Switches rust-base from rust:1.94-alpine3.23 to rust:1.94-slim-bookworm (glibc)
  • Switches final runtime image from alpine:3.23 to debian:bookworm-slim (needed to load the glibc-linked .so)
  • Verified locally: plugin compiles, image builds, server starts with plugin loaded (Loaded kbve-mc-plugin (0.1.14))

Changes

  • apps/mc/Dockerfile — Alpine → Debian for rust-base and final image, apt-get instead of apk

Test plan

  • Local build succeeds (docker build --build-arg VARIANT=dev)
  • Smoke test: server starts, plugin loads with all handlers + web server
  • CI Dev Docker Build — MC job passes

Closes #8220

…lib support

musl does not support cdylib crate types, so the plugin .so was never
being compiled in Docker — the error was silently masked by || true.
Switch rust-base to rust:1.94-slim-bookworm and final image to
debian:bookworm-slim so cargo can produce the cdylib plugin.

Closes #8220
@github-actions
Copy link
Contributor

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@h0lybyte h0lybyte merged commit 759eeb1 into dev Mar 18, 2026
7 checks passed
@h0lybyte h0lybyte deleted the trunk/mc-docker-fix-1773810537 branch March 18, 2026 06:10
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