update dockerfile
This commit is contained in:
+4
-1
@@ -22,7 +22,10 @@
|
|||||||
############################
|
############################
|
||||||
# Build Stage
|
# Build Stage
|
||||||
############################
|
############################
|
||||||
FROM golang:1.26-alpine AS build
|
# Run the Go toolchain on the NATIVE build platform and cross-compile to the
|
||||||
|
# target via GOOS/GOARCH below — avoids emulating an amd64 toolchain on arm64
|
||||||
|
# hosts (QEMU segfaults during module download). No-op when build==target.
|
||||||
|
FROM --platform=$BUILDPLATFORM golang:1.26-alpine AS build
|
||||||
WORKDIR /src
|
WORKDIR /src
|
||||||
|
|
||||||
RUN apk add --no-cache git
|
RUN apk add --no-cache git
|
||||||
|
|||||||
Reference in New Issue
Block a user