We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8d6e61f commit 966998aCopy full SHA for 966998a
dogfood/Dockerfile
@@ -324,7 +324,14 @@ RUN addgroup --system nixbld \
324
USER coder
325
326
# Install Nix
327
-RUN sh <(curl -L https://nixos.org/nix/install) --no-daemon
+export NIX_VERSION=2.3.15
328
+RUN curl --silent --show-error --location \
329
+ "https://releases.nixos.org/nix/nix-${NIX_VERSION}/nix-${NIX_VERSION}-x86_64-linux.tar.xz" \
330
+ -o "nix-${NIX_VERSION}-x86_64-linux.tar.xz"
331
+
332
+RUN tar -xf "nix-${NIX_VERSION}-x86_64-linux.tar.xz" \
333
+ && bash "nix-${NIX_VERSION}-x86_64-linux/install" "--no-daemon" \
334
+ && rm -rf "nix-${NIX_VERSION}-x86_64-linux.tar.xz"
335
336
# Install Nix into our bash profile so `nix-shell`, `nix-build, and `nix` are available
337
RUN echo '. /home/coder/.nix-profile/etc/profile.d/nix.sh' >> /home/coder/.bashrc
0 commit comments