Question

Docker build too slow in App Platform - does the speed depend on the App resources used?

Posted October 20, 2020 344 views
DigitalOcean App Platform

Building Docker containers is very slow. Could you clarify if the resources allocated to build Docker containers somehow depend on the overall App “budget”, or is it going to be of that speed no matter how big the App is?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
2 answers
  • Thanks! I’m aware of caching, but it seems the App Platform keeps rebuilding from scratch even though I only occasionally change some RUN commands that are at the end of the Dockerifle.

Hi @ReWild,

Build performance is an area we’re actively working on. We have a few improvements on the way—some planned and some already in progress.

As for Docker builds, we do cache layers between builds of the same component. If you’re only changing the RUN command at the end of the Dockerfile, previous layers should be re-used from the cache.

If this is not the case, please open a support ticket so we can look at your app’s build logs specifically and figure out what’s happening!

To answer your initial question, the same resources are allocated for each build.

Submit an Answer