...

/

Building Images and Launching Apps

Building Images and Launching Apps

Learn to build an image and launch a live container from it.

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 .
...