gin-rest-api-example
gin-rest-api-example copied to clipboard
Docker Build Failure due to GoLang Version 1.14
When I used the command docker build -f cmd/server/Dockerfile -t gin-example/article-server .
to build a Docker image, the build failed with an exit code of 2.
After numerous searches, I understood that the issue was due to the Go Lang version being 1.14. I upgraded the version to 1.18 in the Dockerfile
located at cmd/server
, which resulted in a successful build.