Fix Docker multi-stage build to include native dependencies for mediasoup runtime #34
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
The current
Dockerfileutilizes a multi-stage build strategy where the runner stage is based onnode:24-slim. This slim image does not include the native system libraries or build tools required by themediasoupserver component. Consequently, when the application runs in Docker, it fails at runtime because the native binaries for WebRTC streaming are missing or incompatible.Proposed work
Update the
Dockerfilerunner stage to install the necessary native dependencies for mediasoup before copying the application output from the builder stage. This may involve switching the base image to one that includes these dependencies (e.g.,node:24-bookworm) or installing required system packages within the existing slim stage.Acceptance criteria
node).Implementation notes
Dockerfilenode:24-slimmediasoup(requires native binaries)MEDIASOUP_ANNOUNCED_IPTest plan
Dockerfile.