|
|
|
|
|
by cbrewster
1666 days ago
|
|
Author here. As with most things, its all about the trade-offs. Docker has certainly proved itself and that approach has worked on a massive scale. However, its not a silver bullet. For us at Replit, our Docker approach was causing issues: our base image was large and unmaintainable and we had almost no way of knowing what changed between subsequent builds of the base image. We've been able to utilize Nix to address both of those issues, and others who may be in a similar scenario might also find Nix to be valuable. Of course Nix comes with its own set of opinions and complexities but it has been a worthwhile trade-off for us. |
|
I wish that docker has the ability to merge multiple parent layers like git, then you can build the gigantic image by just updating single layer.
The only hack the docker can do is multistage-build, however that won't work reliably in some cases such as resolving conflicts.