Not tagging Dockerfile with specific Go version can sometimes cause the host machine to use a cached version of the tagged image.
By explicitly specifying supported Go version, the host machine is forced to install the correct Docker image (if not available) - thus ensuring application will run successfully for a specific version of Go.
Not tagging Dockerfile with specific Go version can sometimes cause the host machine to use a cached version of the tagged image.
By explicitly specifying supported Go version, the host machine is forced to install the correct Docker image (if not available) - thus ensuring application will run successfully for a specific version of Go.