From 222cd094f8e13603886919d4d7c529f8a67d471f Mon Sep 17 00:00:00 2001 From: Julian Mutter Date: Thu, 4 Jun 2026 17:39:32 +0200 Subject: [PATCH] Optimize dockerfile --- Dockerfile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index dc4398c..510854d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,9 +16,7 @@ RUN mkdir -p /etc/nix && \ echo "experimental-features = nix-command flakes" >> /etc/nix/nix.conf # Install devenv (the Nix way, not the apt-get way) -RUN nix profile add nixpkgs#devenv - -# Cleanup, otherwise nix panicks -RUN rm -rf /homeless-shelter +RUN nix profile add nixpkgs#devenv && \ + nix-collect-garbage -d CMD ["/bin/bash"]