Description
A pattern I've seen or implemented in many repos is to have Containerfile
alongside a Containerfile.base
- the former bundles up the app code (which changes frequently), the latter installs "system level dependencies" which generally changes far less frequently (this would be where, say, libfoo-devel
gets installed for foo-gem
to build against).
My Neovim config appears to auto-detect Containerfile.base
as a Dockerfile (not sure if that's by way of file name or by way of the FROM blah
line at the top), but I can't so far figure out how to emulate this in Helix, and further, Vim modelines don't flip Helix into Dockerfile mode, so I can't even hint at "hey, here's what you should use to highlight this!".
I'd propose something like the following, though it's probably imperfect and open to all sorts of discussion:
file-types = ["Dockerfile", "dockerfile", "Containerfile", "containerfile", { prefix = "Containerfile." }]
or maybe Containerfile.*
?