Fixing the docker build.

This commit is contained in:
Nicolas Patry 2025-03-13 11:04:50 +01:00
parent 83ef364177
commit 033efc40db
No known key found for this signature in database
GPG Key ID: 4242CEF24CB6DBF9

View File

@ -9,11 +9,11 @@
let
build = if stream then dockerTools.streamLayeredImage else dockerTools.buildLayeredImage;
tmp = runCommand "tmp" { } ''
mkdir $out
mkdir -m 1777 $out/tmp
'';
in
# tmp = runCommand "tmp" { } ''
# mkdir $out
# mkdir -m 1777 $out/tmp
# '';
build {
name = "tgi-docker";
tag = "latest";
@ -25,9 +25,12 @@ build {
];
};
extraCommands = ''
mkdir -p tmp
chmod -R 1777 tmp
'';
contents = [
cacert
stdenv.cc
tmp
];
}