News for hackers. Stuff that matters.
Re:Using Nix with Dockerfiles by rgoulter on Monday April 24, 2023 @11:59PM (#35696365)
> 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

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.

There are no comments on this comment yet.