internal/gapicgen/cmd/genbot: update protoc to 3.12.x

Use Alpine's "edge" branch to get the newest version of protoc.

Change-Id: Icf26cbd56afcecccf025e8cfdf1d215c2a66d902
Reviewed-on: https://code-review.googlesource.com/c/gocloud/+/56974
Reviewed-by: Cody Oss <codyoss@google.com>
Reviewed-by: Noah Dietz <ndietz@google.com>
diff --git a/internal/gapicgen/cmd/genbot/Dockerfile b/internal/gapicgen/cmd/genbot/Dockerfile
index e3d92e4..05d4366 100644
--- a/internal/gapicgen/cmd/genbot/Dockerfile
+++ b/internal/gapicgen/cmd/genbot/Dockerfile
@@ -7,11 +7,18 @@
 # Install bash and ssh tools (needed to run regen.sh etc).
 RUN apk add bash openssh openssh-client
 RUN which bash
+
+# Install libc compatibility (required by protoc and go)
+RUN apk add libc6-compat
+
+# Use edge for protoc 3.12.x
+# Remove when main upgrades from 3.11.x
+RUN sed -i -e 's/v[[:digit:]]\..*\//edge\//g' /etc/apk/repositories
+RUN apk update
+
 # Install protoc and protobuf-dev (common protos).
 RUN apk add protoc protobuf-dev
 RUN protoc --version
-# Install libc compatibility (required by protoc and go)
-RUN apk add libc6-compat
 
 # Install Go.
 RUN wget -O /tmp/go.tgz https://dl.google.com/go/go1.13.4.linux-amd64.tar.gz && \