A

Admin • 833.24K Points
Coach

Q. Where is the best place to put a `.dockerignore` file?

  • (A) Inside /etc
  • (B) Outside the Dockerfile directory
  • (C) In the same directory as Dockerfile
  • (D) In /usr/bin

Explanation by: Admin

The `.dockerignore` file should be in the same directory as the Dockerfile to exclude files from the build context.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.