From 5547ec916b05faa28f9c41da13f8b61571b1ce87 Mon Sep 17 00:00:00 2001 From: Justin Lewis Salmon Date: Sun, 17 Apr 2022 07:35:56 +1000 Subject: [PATCH] fix: ensure copied source has correct ownership When using `-layout` and `--opt source_mode=copy` followed by `docker build` from inside a docker container (docker-in-docker) where the executing user is `root`, the copied source ends up being owned by `root` and the build fails during the `Setup.sh` phase due to permissions issues. This patch fixes the issue by ensuring the copied source is owned by the `ue4` user. --- ue4docker/dockerfiles/ue4-source/linux/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ue4docker/dockerfiles/ue4-source/linux/Dockerfile b/ue4docker/dockerfiles/ue4-source/linux/Dockerfile index c95badf3..702a7044 100644 --- a/ue4docker/dockerfiles/ue4-source/linux/Dockerfile +++ b/ue4docker/dockerfiles/ue4-source/linux/Dockerfile @@ -15,7 +15,7 @@ ARG VERBOSE_OUTPUT=0 # Copy the Unreal Engine source code from the host system ARG SOURCE_LOCATION -COPY ${SOURCE_LOCATION} /home/ue4/UnrealEngine +COPY --chown=ue4:ue4 ${SOURCE_LOCATION} /home/ue4/UnrealEngine {% else %}