From 949808353ac3e3a2e89adff4f0084182ab7306fd Mon Sep 17 00:00:00 2001 From: Jerico Pena Date: Thu, 21 Mar 2024 10:29:53 -0400 Subject: [PATCH] Change user when copying files out of image --- pack-with-buildkit.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pack-with-buildkit.sh b/pack-with-buildkit.sh index 961c2ed..af5b047 100755 --- a/pack-with-buildkit.sh +++ b/pack-with-buildkit.sh @@ -45,7 +45,7 @@ fi mkdir -p cnb-build-files # Copy the files created by pack during the build from the volume and into the local directory -docker run --rm --entrypoint bash \ +docker run --rm --entrypoint bash --user root \ --volume $(pwd)/cnb-build-files:/hostmnt \ localhost:$registry_port/inline-app \ -c 'cp -R /workspace/build-files/* /hostmnt/'