Skip to content

Commit a75c15c

Browse files
authored
Avoid kvm in dockerImage builds (#190)
By using copyToRoot instead of a generic runAsRoot Fixes #189
1 parent 8cefb14 commit a75c15c

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

default.nix

+5-4
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,11 @@ let profilingModule = {
5656

5757
fromImage = baseImage;
5858

59-
runAsRoot = ''
60-
ln -s "${default}/bin/chainweb-data" /usr/local/bin/
61-
mkdir -p /chainweb-data
62-
'';
59+
copyToRoot = pkgs.runCommand "copyToRoot" {} ''
60+
mkdir -p $out/usr/local/bin/
61+
ln -s "${default}/bin/chainweb-data" $out/usr/local/bin/
62+
mkdir -p $out/chainweb-data
63+
'';
6364

6465
config = {
6566
WorkingDir = "/chainweb-data";

0 commit comments

Comments
 (0)