Skip to content

Commit 8b91f92

Browse files
authored
Fixing the docker build. (#3108)
* Fixing the docker build. * Apply suggestions from code review
1 parent 27ed848 commit 8b91f92

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

nix/docker.nix

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@
99

1010
let
1111
build = if stream then dockerTools.streamLayeredImage else dockerTools.buildLayeredImage;
12-
tmp = runCommand "tmp" { } ''
13-
mkdir $out
14-
mkdir -m 1777 $out/tmp
15-
'';
1612
in
1713
build {
1814
name = "tgi-docker";
@@ -25,9 +21,12 @@ build {
2521
];
2622

2723
};
24+
extraCommands = ''
25+
mkdir -p tmp
26+
chmod -R 1777 tmp
27+
'';
2828
contents = [
2929
cacert
3030
stdenv.cc
31-
tmp
3231
];
3332
}

0 commit comments

Comments
 (0)