I encountered a wired problem with Erlang 20 .
I use rebar3 as prod tar
to generate an archived file and I use this to build an docker image based on erlang:20.2-alpine
.
On my Macbook Pro, it is ok to call bin/app start
but on the target docker container, it tells me: erts-9.2/bin/erlexec: line 1: syntax error: unexpected "("
Erlang on my Macbook Pro:
erl
Erlang/OTP 20 [erts-9.2] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:10] [hipe] [kernel-poll:false] [dtrace]
Eshell V9.2 (abort with ^G)
Erlang on the target container:
erl
Erlang/OTP 20 [erts-9.2] [source] [64-bit] [smp:2:2] [ds:2:2:10] [async-threads:10] [hipe] [kernel-poll:false]
Eshell V9.2 (abort with ^G)```