3 ms·
JavaScript is also not complicated. It's just poorly designed when it comes to matching programmer's intuition. With this out of the way: Dockerfile as a conc
by crabbone 2y ago
JavaScript is also not complicated. It's just poorly designed when it comes to matching programmer's intuition.
With this out of the way: Dockerfile as a concept, i.e. a minimalist (in simple cases) way to declaratively configure a container is great. The execution of this concept is, on the other hand, awful. The behavior of gotchas like the one OP described isn't the reason for the awfulness, rather, it comes from the inconsistent-by-default builds. That is, Dockerfile is not a full description of the contents of the built image. To know what will go into the image, you also need to consider the state of the entire world (because you can download things from the Internet during build, execute code with unpredictable side effects etc.)