This commit is contained in:
@@ -4,7 +4,10 @@ FROM golang:1.24-alpine AS builder
|
||||
WORKDIR /src
|
||||
|
||||
# Install build dependencies (none needed for static build) and enable static build
|
||||
ENV CGO_ENABLED=0 GOOS=linux GOARCH=amd64
|
||||
# Make the build architecture-aware for buildx multi-arch builds
|
||||
ARG TARGETOS
|
||||
ARG TARGETARCH
|
||||
ENV CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH}
|
||||
|
||||
# Cache go modules
|
||||
COPY app/web/go.mod ./app/web/
|
||||
|
||||
Reference in New Issue
Block a user