I use "go get" command to download and install my go code from Github and other dependencies inside the Docker. For example:
docker run golang go get -v "github_repo_directory"
It downloads more than 900 MB initially for the dependencies. Then I can create the container and run the code inside the docker container. The issue is whenever I change something in the code, I have to to go through all the process and it again downloads a huge amount of file. Is there any way so that every time I modify my code, I don't have to download all the dependencies? I am using the following reference to run my code.