Dockerfile: Upgrade Go to 1.18
GitLab's Go-based servers have recently been unblocked on their upgrade to Go 1.18. Due to the policy of only supporting the latest two Go versions this means that we're dropping support for Go 1.17 in many projects at the same time.
Upgrade our Dockerfile to reflect this change and upgrade the Go version to 1.18.