Containerize the Application
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.