Skip to content

Commit 5547ec9

Browse files
authored
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.
1 parent edac031 commit 5547ec9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ue4docker/dockerfiles/ue4-source/linux/Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ ARG VERBOSE_OUTPUT=0
1515

1616
# Copy the Unreal Engine source code from the host system
1717
ARG SOURCE_LOCATION
18-
COPY ${SOURCE_LOCATION} /home/ue4/UnrealEngine
18+
COPY --chown=ue4:ue4 ${SOURCE_LOCATION} /home/ue4/UnrealEngine
1919

2020
{% else %}
2121

0 commit comments

Comments
 (0)