2 ms·
Honestly Dockerfile sucks. It's good enough to be adoptable everywhere and put a high burden on anyone trying to replace it but they really are not very well d
by dathinab 4y ago
Honestly Dockerfile sucks.
It's good enough to be adoptable everywhere and put a high burden on anyone trying to replace it but they really are not very well designed.
And while some of their problem have somewhat been reduced with multi stage builds or run mounts it's still not a grate design.
Now that I think about it a lot of things about docker are at least slightly sub-optimal, and if we limit the view to docker CLI podman beats it in a lot of points (but not all!!!). And it's often small things like `--all` variants of various commands not being available or things like the whole docker group == semi-admin nightmare (which can be avoided by now but is still the default many distros and in the past I have seen docker use banned due to security considerations in some companies).
In the end not Dockerfile or CLI but the docker desktop and similar are their product and it shows.
- MuffinFlavored 4y agoBiggest thing I've ran into personally (for small projects, hobbyist stuff) is: do I need Terraform/Ansible/Kubernetes or can I just use Docker Compose? do I need Bazel/nix or can I just use Dockerfile? Something about not needing to install anything other than Docker/Docker Compose to "move quickly, end up with good enough, low barrier to entry up front, minimal/no tradeoffs for "maintaining" long term, not need to invest a bunch of time managing/getting other tools/pieces of software ready" kind of attractive
- nikau 4y agoA simple fix would be an option to surround dockerfile commands in curly braces or something and all changes inside get flattened to a single layer.