The COPY command in a .dockerfile will blindly copy everything from a folder, if you specify a folder. This can lead to a lot of extra files and folders in your Docker image, causing the file size of the image to be larger than it needs to be.
To combat this, a .dockerignore file can be added to your project. This file will instruct the COPY command of your Dockerfile, to ignore certain files and folders.
This episode will show you how to use the .dockerignore to remove the extra file from your image, so you only end up with the files you need for running your application.