3 ms·
> Use a Dockerfile and the official Nix image to build your application using Nix using roughly one shell command. I'd misread the title, & thought this would
by rgoulter 4y ago
> Use a Dockerfile and the official Nix image to build your application using Nix using roughly one shell command.
I'd misread the title, & thought this would be about using nixpkgs' dockerTools.
https://nix.dev/tutorials/building-and-running-docker-images https://nix.dev/tutorials/building-and-running-docker-images
I would assume that the resulting image is about the same, but you wouldn't need a bespoke Dockerfile. The downsides being that you'd need to know nix to maintain it (which you would anyway with this approach), and you'd need `nix` rather than `docker` to build the image.