Report this

What is the reason for this report?

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

Posted on October 5, 2020
Andy Hattemer

By Andy Hattemer

Community Builder

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?



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!

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
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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.