There is no code to build: the service runs ghost:5-alpine. A 1 GB disk is mounted at /var/lib/ghost/content, which holds the SQLite database, images and themes, so nothing is lost on redeploys. The start command sets Ghost’s url from REBASABLE_EXTERNAL_URL. Disks need an always-on instance, so the template uses Starter.
Run it locally
docker run -p 2368:2368 -e url=http://localhost:2368 ghost:5-alpine
Use it as your own repository
Copy the ghost folder of the templates repository into a new repo (the files at the root, rebasable.yaml included) and push it. Then add a Deploy button to its README, or create it from Blueprints, New blueprint in the dashboard. From then on, every push deploys, and pull requests get preview environments.
Good to know
Open /ghost on your new URL right after the first deploy to create the owner account.
Custom domain: add it in the dashboard, then set the env var url=https://blog.example.com and redeploy.
Newsletters need a mail provider (Mailgun) configured in Ghost’s settings.