Use extraCommands instead of runAsRoot in Docker build
Some checks failed
Build and Deploy / build-and-deploy (push) Failing after 2m12s
Some checks failed
Build and Deploy / build-and-deploy (push) Failing after 2m12s
runAsRoot requires KVM which isn't available in CI containers. extraCommands achieves the same result without virtualization. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -44,10 +44,10 @@ pkgs.dockerTools.buildImage {
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
runAsRoot = ''
|
# Create required directories without runAsRoot (which needs KVM)
|
||||||
#!${pkgs.stdenv.shell}
|
extraCommands = ''
|
||||||
mkdir -p -m 1777 /tmp
|
mkdir -p -m 1777 tmp
|
||||||
mkdir -p /var/lib/animaltrack
|
mkdir -p var/lib/animaltrack
|
||||||
'';
|
'';
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
|
|||||||
Reference in New Issue
Block a user