This is an example of how to set up a Ruby on Rails application with a Dockerfile to deploy on Kinsta’s Application Hosting services from a GitHub repository.

  1. Log in to GitHub and create a new repository from this template (Use this template > Create a new repository): Kinsta – Hello World – Dockerfile – Rails
  2. In MyKinsta, add an application with the Hello World Dockerfile Rails repository. Make sure you select Use Dockerfile to set up a container image. The Start command can be left blank for the web process as Kinsta automatically detects the required command during the first deployment.

The app is available as soon as the build finishes, and the default Rails page confirming successful installation loads at your application’s URL.

Successful installation of Ruby on Rails.
Successful installation of Ruby on Rails.

Deployment Lifecycle

When you first create the app, Kinsta creates a process from the ENTRYPOINT instruction.

ENTRYPOINT ["entrypoint.sh"]

If you change this command in the repository, the process is not changed by default, so you must edit the process in your application’s Processes in MyKinsta.