From the course: Cloud Native Development with Node.js, Docker, and Kubernetes

Unlock the full course today

Join today to access over 24,200 courses taught by industry experts.

Build a dev and debug Dockerfile

Build a dev and debug Dockerfile

- [Instructor] In the previous video, we used the CloudNativeJS's project for Docker to add a Docker file template to our application. That Docker file template is used to build a Docker image. The Docker project also provides a Dockerfile-run and a Dockerfile-tools. And that Dockerfile-tools can be used to build an iterative development and debug environment for our application in a Docker container. That Dockerfile-tools uses the run-debug and the run-dev script in order to run the development and the debug environment. To install those, we use the install instructions in the wget command again. We go into our app project, and then run the wget command to first get the Dockerfile-tools. We then get the run-dev script and the run-debug script. Now we need to edit the run-dev and run-debug scripts to make sure they're launching our application. We saw previously that our application is launched using node ./bin/www, so we need to edit the scripts to use that. This will run our…

Contents