The docker build command creates Docker images using a Dockerfile and a "context". The set of files in the supplied PATH or URL constitutes the build's context.
Docker Build Best Practices
Choose the smallest base image (alpine images) possible.
Reduce the amount of clutter in your images.
Create multi-stage builds.
Try to make images with common layers.
Tagging with semantic versioning.
Try not to install unneeded items or dependencies.
Create a ".dockerignore" file to remove unnecessary things from the build context.
Docker Engine
The Docker engine, sometimes known as Docker, is a client-server application that creates and runs containers using Docker components. Runs on different Linux (CentOS, Debian, Fedora, Oracle Linux, RHEL, SUSE, and Ubuntu) and Windows Server OS.