- Builder: erlang:21-alpine -> erlang:27-alpine (OTP 25+ required)
- Runtime: alpine:3.9 -> alpine:3.22 (matches builder's Alpine for ERTS ABI compatibility)
- Use ./rebar3 (project-bundled) instead of system rebar3
- Consolidate apk add calls in runtime stage
- Add libstdc++ to runtime: OTP 24+ JIT compiler (beam.smp) links against
libstdc++ and libgcc_s, which are not present in the base Alpine image
Tested: built and pushed seriyps/mtproto-proxy:0.8.3 and :latest to Docker Hub.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>