A devcontainer configuration for working with OCaml
It uses ocaml/opam (relying on the default tag, which is latest as of this writing).
You can copy the devcontainer.json file into your .devcontainer directory.
You could also use git-subrepo to link it to your codebase by running:
git subrepo clone https://github.com/nlsantos/devcontainer-ocaml .devcontainerinside your Git repository. You can then use your preferred tooling to spin up the devcontainer.
Take a look at my project brig if you don't already have one.
In case configuration can be copyrighted, these files are made available to the public under 0BSD.