Question

Solution to indefinite Python builds on App platform

Posted November 11, 2021 72 views
PythonDjangoDigitalOcean App Platform

There is an ongoing issue with using Python Cloud Native buildpacks on the App platform with very long or indefinite build times as noted by multiple users.

A working solution is using a Docker build process instead. Simply including a Dockerfile in the root of the app will kick off a Docker build process which completes fairly quickly.

I banged my head on the wall for a while trying to get a Django working on DO App, hopefully this solution will save others the headache.

Example Dockerfile: https://github.com/wagtail/docker-wagtail-develop/blob/master/Dockerfile

Submit an answer

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!