For the Question
Which of the below can help minimize the image size?
Wondering why the option
Avoid sending unwanted files to the build context using .dockerignore
is not an answer
For the Question
Which of the below can help minimize the image size?
Wondering why the option
Avoid sending unwanted files to the build context using .dockerignore
is not an answer
Adding unwanted files to the build context would make the build process longer, but won’t increase image size unless you actually copy those files to the image.