You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Dockerfile
+6-2Lines changed: 6 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,16 @@
1
-
FROM docker.io/golang:1.23.4-alpine3.21 as builder
1
+
# Note: this uses host platform for the build, and we ask go build to target the needed platform, so we do not spend time on qemu emulation when running "go build"
2
+
FROM --platform=$BUILDPLATFORM docker.io/golang:1.23.4-alpine3.21 as builder
0 commit comments