Create a Custom Image with a Dockerfile running Node.js

Joel Lord
InstructorJoel Lord

Share this video with your friends

Send Tweet

You will learn how to create your own images that will include all the source code of your application, along with a specific version of Node.js and all the dependencies that are needed. Once you are done, you will be able to share this image with other people and this will ensure that everyone is running the same environment. It will event let people that don’t have Node.js run this server. This will also have the added benefit of cleaning up everything once you close the application.

You'll notice that we will run into the same error stating we can't connect to the database. This is expected and we'll fix this in Allow Container to Communicate through Docker Networks