Reputation: 11
I was trying to setup Dockerfile for my application but this application also creates some Erlang scripts at runtime with Rebar3. The issue is when i execute rebar3 new escript <name>
at runtime, it gives me following error:
<<"===> Rebar dependency inets could not be loaded for reason {"no such file or directory",\n
"inets.app"}\n">>
This is the current part of the Dockerfile (Elixir image is based on Erlang image):
FROM docker.io/elixir:1.14
# Prepare Mix
RUN mix local.hex --force
RUN mix local.rebar --force
# Copy Release
COPY --from=builder /app/_build/prod/rel/example /release/example
ENTRYPOINT [ "/release/example/bin/example" ]
I tried installing erlang-dev
, erlang-inets
etc... And they didn't work.
Upvotes: 1
Views: 139