Building Images and Launching Apps
Learn to build an image and launch a live container from it.
We'll cover the following...
We'll cover the following...
Build Image
To build an image named nodehello from your Dockerfile, the following command is used:
docker image build -t nodehello .
...๐ The period at the end of the command is essential. It references the application path. You can also use
-f <file>if you didnโt name your build file โDockerfileโ e.g.,docker image build -f Dockerfile.prod -t nodehello .