4 ms·
help me understand nix file helps you build OCI image and then you run it not locally/somewhere else? can that be compared apples to apples to docker where yo
by MuffinFlavored 4y ago
help me understand
nix file helps you build OCI image and then you run it not locally/somewhere else?
can that be compared apples to apples to docker where you can build with Dockerfile syntax, and then run locally the image?
- hamandcheese 4y agoNix builds native software for your platform reproducibly. There is no OCI image, no Docker, just a way to reliably install software, which is a great foundation for building per-project development environments. (Aside: you can build oci images using nix, but that’s probably what you would use for building deployable artifacts for production, not for development). I would not say it is comparable with a Dockerfile - a Dockerfile is closer to a shell script, with caching between each step. Credit to Dockerfile syntax for being very easy to grok, but it is inherently not reproducible. The perceived reliability of docker for development probably comes from the fact that you can share a prebuilt image, but rebuilding might not always work.