diff --git a/nix/docker.nix b/nix/docker.nix deleted file mode 100644 index 53935f9c14..0000000000 --- a/nix/docker.nix +++ /dev/null @@ -1,35 +0,0 @@ -# defines a derivation that builds a minimal docker image containing aleph-node and its src folder -{ - # when keepDebugInfo = true, created docker image includes `all` dependencies - # and image weights > 490MB instead of < 100MB - alephArgs ? { keepDebugInfo = false; } -}: -let - versions = import ./versions.nix; - nixpkgs = versions.nixpkgs; - - alephNode = import ../default.nix alephArgs; - dockerEntrypointScript = (nixpkgs.writeScriptBin "docker_entrypoint.sh" (builtins.readFile ../docker/docker_entrypoint.sh)).overrideAttrs(old: { - buildCommand = '' - ${old.buildCommand} - # fixes #! /usr/bin/env bash preamble - patchShebangs $out - ''; - }); -in -nixpkgs.dockerTools.buildImage { - name = "aleph-node"; - created = "now"; - contents = [alephNode dockerEntrypointScript nixpkgs.bash nixpkgs.coreutils]; - config = { - Env = [ - "PATH=${alephNode}/bin:${dockerEntrypointScript}/bin:${nixpkgs.bash}/bin:${nixpkgs.coreutils}/bin" - ]; - Entrypoint = "${dockerEntrypointScript}/bin/docker_entrypoint.sh"; - ExposedPorts = { - "30333" = {}; - "9933" = {}; - "9944" = {}; - }; - }; -}