Skip to content

Commit b36516a

Browse files
authored
[Windows] Remove engine intermediate engine build products before committing ue4-minimal builder image (#265)
These products are not used after build step, but they take massive amounts of disk space: up to 350GBs for multi-platform (Win64+PS4+PS5+XB1+XSX) engine build To make matters even worse, current Docker image commit algorithm on Windows additionally uses x2 of resulting image size on disk.
1 parent 577461d commit b36516a

File tree

1 file changed

+2
-1
lines changed
  • ue4docker/dockerfiles/ue4-minimal/windows

1 file changed

+2
-1
lines changed

ue4docker/dockerfiles/ue4-minimal/windows/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ RUN .\Engine\Build\BatchFiles\RunUAT.bat BuildGraph `
3434
-set:HostPlatformOnly=true `
3535
-set:WithDDC={% if excluded_components.ddc == true %}false{% else %}true{% endif %} `
3636
{{ buildgraph_args }} && `
37-
(if exist C:\UnrealEngine\LocalBuilds\InstalledDDC rmdir /s /q C:\UnrealEngine\LocalBuilds\InstalledDDC)
37+
(if exist C:\UnrealEngine\LocalBuilds\InstalledDDC rmdir /s /q C:\UnrealEngine\LocalBuilds\InstalledDDC) && `
38+
rmdir /s /q C:\UnrealEngine\Engine
3839

3940
# Split out components (DDC, debug symbols, template projects) so they can be copied into the final container image as separate filesystem layers
4041
COPY split-components.py C:\split-components.py

0 commit comments

Comments
 (0)