Slim down Unreal Engine 5 docker build images

With this configuration I was able to slim down my images from 120GB to 40GB

Tue, 22 Aug 2023

I was able to strip down the docker image engine size by removing the client and server builds from the container. My game is a single player game so that wasn’t needed for me. One thing to note, if you do need to build servers then this will most likely no help you.

ue4-docker build $version -username $user -p $token --exclude debug --exclude templates --monitor --opt buildgraph_args="-set:GameConfigurations=Shipping;Development -set:HostPlatformOnly=true -set:WithClient=false -set:WithServer=false" --visual-studio=2022;

The things that will help you here is excluding debug symbols, excluding the engine templates, making sure you only build the configurations that you need, making sure you only build the host platform, not building the client and not building the server

Buy Me A CoffeeDigitalOcean Referral Badge
Edward Beazer

Edward Beazer - I just like to build shit. Sometimes I get stuck for hours, even days while trying to figure out how to solve an issue or implement a new feature. Hope my tips and tutorials can save you some time.

DigitalOcean Referral Badge