Containerize a Single-Container Application

Get started with containerizing a single-container application.

We'll cover the following

In the next few lessons, we’ll complete the following steps to containerize a simple Node.js app:

  • Get the application code from GitHub.
  • Create the Dockerfile.
  • Containerize the app.
  • Run the app.
  • Test the app.
  • Take a closer look at the app.

Get the application code

We’ll use a simple Node.js web app that serves a web page on port 8080.

If you still need to clone the repo, run the following command to clone it. You’ll need to install git, and it will create a new directory called ddd-book.

Note: For this course, we have already cloned the code in our playground, and it can be accessed in the ddd-book folder in the root directory. We have used the following command to clone the repo:

git clone https://github.com/nigelpoulton/ddd-book.git

Get hands-on with 1300+ tech skills courses.