From a37e758dc52f9e1ad570532d51ee8520813ff1c9 Mon Sep 17 00:00:00 2001 From: Tom Alexander Date: Tue, 14 Jul 2026 23:40:47 -0400 Subject: [PATCH] Try combining nix commands. --- docker/server/Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docker/server/Dockerfile b/docker/server/Dockerfile index 49f6160..23c63f1 100644 --- a/docker/server/Dockerfile +++ b/docker/server/Dockerfile @@ -13,12 +13,13 @@ download-attempts = 1 connect-timeout = 3 EOF -RUN cp "$(nix build nixpkgs#cacert --print-out-paths)/etc/ssl/certs/ca-bundle.crt" /tmp/ca-bundle.crt +# RUN cp "$(nix build nixpkgs#cacert --print-out-paths)/etc/ssl/certs/ca-bundle.crt" /tmp/ca-bundle.crt COPY . /tmp/build WORKDIR /tmp/build -RUN --mount=type=ssh GIT_SSH_COMMAND="ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" nix build '.#docker_env' +# RUN --mount=type=ssh GIT_SSH_COMMAND="ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" nix build '.#docker_env' +RUN --mount=type=ssh GIT_SSH_COMMAND="ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null" cp "$(nix build nixpkgs#cacert --print-out-paths)/etc/ssl/certs/ca-bundle.crt" /tmp/ca-bundle.crt && nix build '.#docker_env' # Export the built closure to a folder RUN mkdir /tmp/nix-store-closure