Complete the command to build a Docker image using the current directory as the build context.
docker build -t myimage [1]The dot . tells Docker to use the current directory as the build context, which includes all files needed for the build.
Complete the command to specify a Dockerfile named 'Dockerfile.dev' while building with the current directory as context.
docker build -t devimage [1] Dockerfile.dev .-c or -d which are not valid for specifying Dockerfile.The -f option lets you specify a custom Dockerfile name or path.
Fix the error in the command to build an image with the build context set to the 'app' directory.
docker build -t appimage [1]The build context is a path, so app/ correctly points to the 'app' directory relative to the current location.
Fill both blanks to create a Docker build command that uses the 'src' directory as context and specifies a Dockerfile named 'Dockerfile.prod'.
docker build [1] Dockerfile.prod [2]
-c for Dockerfile.The -f option specifies the Dockerfile, and src is the build context directory.
Fill all three blanks to build a Docker image named 'webapp' using the 'web' directory as context and a Dockerfile named 'Dockerfile.web'.
docker build [1] Dockerfile.web [2] -t [3]
-f specifies the Dockerfile, web is the build context directory, and webapp is the image tag.