I ran into the same issue. I tried using golang:1.24.4-bullseye
and golang:1.24.4-alpine3.22
, but neither worked - both failed during compilation due to missing libraries required by V8. Fortunately, golang:1.24.3-bookworm
worked for me as the builder stage, and I used ubuntu:22.04
as the final stage.