Skip to main content
Deploying via Docker image lets you build once, scan that exact artifact in CI, and deploy the same image to staging and production. If you are currently using deploying via Git and would like to migrate to deploying via Docker image, use the following instructions:
  1. If you have a Procfile or .aptible.yml file in your repository, you must embed it in your Docker image. To do so, follow the instructions at Procfiles and .aptible.yml with deploying via Docker image.
  2. If you modified your image to add the Procfile or .aptible.yml, rebuild your image and push it again.
  3. Deploy using aptible deploy as documented in Using aptible deploy, with one exception: the first time you deploy (you don’t need to do it again), add the --git-detach flag to this command.