Skip to content

Commit

Permalink
Add configs dir to the image
Browse files Browse the repository at this point in the history
  • Loading branch information
paolino committed Jul 17, 2024
1 parent bffab90 commit ac6d475
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion nix/docker.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@


let
pkgs = import <nixpkgs> {};
version = (lib.head exes).version;

defaultPort = "8090";
Expand Down Expand Up @@ -56,6 +57,10 @@ let
destination = "/etc/nsswitch.conf";
};

configsDirectory = pkgs.runCommandNoCC "my-configs" {} ''
mkdir -p $out
cp -r ${./configs}/* $out
'';
# System environment layer, which isn't going to change much between
# versions.
envImage = dockerTools.buildImage {
Expand All @@ -81,7 +86,7 @@ in
name = repoName;
tag = version;
fromImage = baseImage;
contents = exes ++ [ startScript ];
contents = exes ++ [ startScript ] ++ [ configsDirectory ];
config = {
EntryPoint = [ "start-cardano-wallet" ];
ExposedPorts = {
Expand Down

0 comments on commit ac6d475

Please sign in to comment.