From 7f5db0d8599b6c60690e388e111a6ea9ac3b66c0 Mon Sep 17 00:00:00 2001 From: Sam Mousa Date: Fri, 29 Sep 2023 10:13:17 +0200 Subject: [PATCH] fix: use mkdir -p so it works even if directory already exists --- src/Module.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Module.php b/src/Module.php index bd0722d..a6ce2df 100644 --- a/src/Module.php +++ b/src/Module.php @@ -174,7 +174,7 @@ public function createBuildContext( $context->from($this->baseImage); $context->run('apk add --update --no-cache jq'); - $context->run('mkdir /runtime && chown nobody:nobody /runtime'); + $context->run('mkdir -p /runtime && chown nobody:nobody /runtime'); $context->volume('/runtime'); $context->copyFromLayer("/project", "0", "/build");