1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2024-09-19 10:50:24 -04:00

Merge pull request #5919 from johnae/var-tmp-in-docker-image

docker: also create var/tmp as some tools rely on it
This commit is contained in:
Rok Garbas 2022-01-16 21:01:47 +01:00 committed by GitHub
commit e1720b8e9d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -201,6 +201,8 @@ let
mkdir $out/tmp
mkdir -p $out/var/tmp
mkdir -p $out/etc/nix
cat $nixConfContentsPath > $out/etc/nix/nix.conf
@ -236,6 +238,7 @@ pkgs.dockerTools.buildLayeredImageWithNixDb {
'';
fakeRootCommands = ''
chmod 1777 tmp
chmod 1777 var/tmp
'';
config = {