aws-samples / aws-modern-application-workshop

A tutorial for developers that want to learn about how to build modern applications on top of AWS. You will build a sample website that leverages infrastructure as code, containers, serverless code functions, CI/CD, and more.
Apache License 2.0
1.46k stars 832 forks source link

add mod init in go docker file #280

Open ravvas opened 2 years ago

ravvas commented 2 years ago

In go docker file "go mod init" should be added else it will throw below error while building docker container go: go.mod file not found in current directory or any parent directory; see 'go help modules' The command '/bin/sh -c go get -d -v' returned a non-zero code: 1

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.