Remove /tmp from docker container

This commit is contained in:
Alexander Bantyev 2020-05-20 22:00:10 +03:00
parent 340622350d
commit b6aa71d6ac
Signed by: balsoft
GPG Key ID: E081FF12ADCB4AD5

View File

@ -1,11 +1,7 @@
{ dockerTools, writeShellScriptBin, runCommand, mcpp, bash, coreutils, ligo, name ? "ligo" }:
let
# LIGO requires /tmp for compilation, which is missing in the default image
tmp = runCommand "tmp" {} "mkdir -p $out/tmp";
in
dockerTools.buildLayeredImage {
inherit name;
tag = "latest";
contents = [ ligo tmp bash ];
contents = [ ligo bash ];
config.Entrypoint = name;
}