Stepping into App Development
Explore how to develop and debug Node.js applications inside Docker containers. Understand building Docker images, running containers for development, managing dependencies, and ensuring stateless app design for easy deployment and scalability.
We'll cover the following...
What to expect in this chapter?
The pre-built Docker images such as MySQL, Adminer, and WordPress are useful, but you’ll eventually want to run your own programs in a container.
In this chapter, you’ll be creating a Node.js “Hello World” application that is built into a Docker image and launched as a container. By default, the image will be ready for deployment on a production server, but Docker Compose will be used to override some settings to create a development and debugging environment. You’ll be able to edit source code on your host, but the files will be ...