Question

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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
services:
- name: web
  github:
    repo: digitalocean/sample-golang
    branch: master
  dockerfile_path: Dockerfile

Then update using doctl with this:

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