Containerize a Single-Container Application
Get started with containerizing a single-container application.
We'll cover the following
The rest of this chapter walks through the process of containerizing a simple Node.js web app.
We’ll complete the following high-level steps:
- Clone the repo to get the app code
- Inspect the Dockerfile
- Containerize the app
- Run the app
- Test the app
- Look a bit closer
- Move to production with Multi-Stage Builds
- A few best practices
The example in this chapter is of a single-container app.
Getting the application code
The application used in this example is available on GitHub.
Clone the sample app from GitHub.
For this course, we have already cloned the code in our playground, and it can be accessed in the
course-content
folder in the root directory.
Get hands-on with 1200+ tech skills courses.