Fixing the docker build.

This commit is contained in:
Nicolas Patry 2025-03-12 23:58:15 +01:00
parent 273d304cf9
commit 8c8f249636
No known key found for this signature in database
GPG Key ID: 4242CEF24CB6DBF9

View File

@ -3,11 +3,16 @@
dockerTools,
cacert,
text-generation-inference,
runCommand,
stream ? false,
}:
let
build = if stream then dockerTools.streamLayeredImage else dockerTools.buildLayeredImage;
tmp = runCommand "tmp" { } ''
mkdir $out
mkdir -m 1777 $out/tmp
'';
in
build {
name = "tgi-docker";
@ -23,5 +28,6 @@ build {
contents = [
cacert
stdenv.cc
tmp
];
}