The build context is all the files/directories in the current directory (the ‘.’ directory from the docker build command).
Keep only files you need for the build in this directory. That is, the Dockerfile and any local files/directories copied/added to the build image in the Dockerfile.