ocaml: missing dependencies
Considering this basic example:
FROM alpine:3.7 RUN apk add --no-cache ocaml RUN echo 'let () = print_endline "Hello World !"' > test.ml RUN ocamlopt test.ml
The last command fails because it needs an C compiler to link the binary.
To work, this requires the “ocaml” packages to have at least those two dependencies: gcc (or clang if the right options are given during the compilation of the package) and musl-dev/libc-dev (don’t know the difference).
I tried contacting the maintainer of the “ocaml” package directly but he was unavailable. Not sure what category to be in here but let’s see.
(from redmine: issue id 8472, created on 2018-02-05, closed on 2019-05-03)