How to migrate from Python buildpack to Dockerfile without creating a new service?

When I started using App Platform I just connected my Python repo, App Platform auto-recognized what I was using and defaulted me to the python buildpack.

I want to switch over to using my own dockerfile instead of the buildpack, can I do that without creating an entirely new App?

Submit an answer

This textbox defaults to using Markdown to format your answer.

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

Sign In or Sign Up to Answer

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.

You can switch over to using a dockerfile by updating your app spec to include a dockerfile_path pointing to it.

Your new app spec might look something like this:

name: sample-golang
- name: web
    repo: digitalocean/sample-golang
    branch: master
  dockerfile_path: Dockerfile

Then update using doctl with this:

doctl app update $APP_ID --spec .do/app.yaml