Containerize the Application

See the steps in detail to containerize the application.

Building images

Now that we understand how it works, let’s build it!

The following command will build a new image called web:latest. The period (.) at the end of the command tells Docker to use the shell’s current working directory as the build context.

Be sure to include the trailing period (.), and be sure to run the command from the psweb-master directory that contains the Dockerfile and application code.

Get hands-on with 1000+ tech skills courses.