Dockerfile

Deploy an application with a Dockerfile

Shiper supports deploying applications with a Dockerfile. This is the most common way to deploy applications with Shiper if there is no pre defined pipeline for your language or framework.

Make sure you have you have a Dockerfile in your repository you want to deploy, for the following steps to work.

Create a new project

If your are logged in to your Shiper account, you can create a new project by clicking on the Add Project button on the dashboard.

Select Docker as the deployment method

When creating a new project, you will be asked to select a deployment method or framework. Select Dockerfile as the deployment method.

Configure deployment

Once Dockerfile is selected as the deployment method, navigate to the Advanced settings section. Here, you will find an option to specify the name of your Dockerfile. By default, Shiper expects a file named Dockerfile in the root directory of your repository. If your Dockerfile has a different name, you can specify it here.

This field accepts either a specific file name or a path leading to the Dockerfile. For instance, you can input my/DockerfileInFolder or simply DockerfileInRoot. It's important to note that this option differs from the Base path setting, which is utilized to define the build context for the deployment.

    • DockerfileInRoot
    • index.html
      • DockerfileInFolder
  • Deploy

    After you have configured the deployment settings, click on the Deploy button to deploy your application. Now you are redirected to the deployment page where you can see the deployment logs and the status of the deployment.