Skip to main content

Example to build a Docker image with Docker Build Cloud (DBC)

An example that builds a Dockerfile in Docker Build Cloud.

This example lives in the pulumi/examples repository. Check out just this directory to use it:

Get started with this example
git clone --filter=blob:none --sparse https://github.com/pulumi/examples pulumi-examples
git -C pulumi-examples sparse-checkout set dockerbuildcloud-ts
cd pulumi-examples/dockerbuildcloud-ts

Builds a Docker Image from an NGINX local Dockerfile. This template prompts the user for an existing DBC builder.

Last revision: May 2024.

📋 Pre-requisites#

👩‍🏫 Get started#

This Pulumi example is written as a template. It is meant to be copied via pulumi new as follows:

Terminal window
pulumi new https://github.com/pulumi/examples/tree/master/dockerbuild-ts-dbc
npm install

Once copied to your machine, feel free to edit as needed.

Alternatively, click the button below to use Pulumi Deployments to deploy this app:

🎬 How to run#

To deploy your infrastructure, run:

Terminal window
pulumi up
# select 'yes' to confirm the expected changes
# 🎉 Ta-Da!

🧹 Clean up#

To clean up your infrastructure, run:

Terminal window
pulumi destroy
# select 'yes' to confirm the expected changes

Related

The infrastructure as code platform for any cloud.