Why is my App Platform build or deployment failing with an out of memory error?

Build Failing with Out of Memory Error

App Platform builds have a combined 8 GB of RAM and disk available, regardless of the plan size. You cannot increase the amount of memory available, so if your build is failing because it runs out of memory, try optimizing your build.

  • Having a large repository and a lot of small files can increase memory overhead, so try decreasing the amount of files in the application to free up more memory during the build. We especially recommend this for static sites.

  • As an alternative, you can build your app as a Docker image and then upload it to DigitalOcean Container Registry. Because this method uses a local build, App Platform skips the build process and deploys directly from the image.

Deployment Failing with Out of Memory Error

The amount of memory available to your app’s deployment depends on the App Platform plan.

If your deployment is running out of memory, you can scale the app to a larger plan.

Dedicated egress IPs route egress (outbound) traffic from an app. To route ingress (inbound) traffic to an app, use one of App Platform’s public ingress IPs.
Add the root domain to the list of domains in the app’s settings along with the wildcard subdomain.
App Platform apps may be slow or unable to resolve .gov domains because the domain administrators have blocked DigitalOcean’s IP addresses. To fix this, you can contact the domain administrator or use a custom DNS resolver.