4: Containerizing an application
Docker is all about the apps!
In this chapter, we’ll containerize a Node.js app and run it in a container.
You do not need to be a Node.js developer.
We’ll divide the chapter as follows:
- Pre-reqs
- Overview of the app
- Test the app
- Containerize the app
- Test the containerized app
Pre-reqs
You’ll need all of the following if you plan on following along:
- An up-to-date Docker environment
- A clone of the book’s GitHub repo
- Node.js (optional)
This chapter uses the new docker init command which is only available on Docker Desktop. Don’t worry though, I’ve included a copy of the Dockerfile in the GitHub repo so that you can follow along if you don’t have Docker Desktop. I’ll explain what to do when the time comes.
Get Getting Started with Docker now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.