Containerize a Single-Container Application
Get started with containerizing a single-container application.
We'll cover the following
In this section, 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
- Look a bit closer
Get the application code
The application we’ll use is 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 git
installed, and it will create a new directory called ddd-book
.
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.
Get hands-on with 1200+ tech skills courses.