Cloud Run は amd64

Cloud Run のコンテナは Linux の amd64(x86-64)向けにビルドする必要がある。

Executables in the container image must be compiled for Linux 64-bit. Cloud Run specifically supports the Linux x86_64 ABI format.

  • amd64: Intel / AMD の CPU の命令セット(CPU が理解する機械語の種類)
  • arm64: Apple Silicon やスマホの CPU の命令セット
  • 機械語は CPU ごとに別物。M1 Mac でビルドするなら GOARCH=amd64 を指定する

参考: https://cloud.google.com/run/docs/container-contract