Skip to content

Commit

Permalink
feat: support to change the golang build image
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaoxiaojie committed Jul 10, 2024
1 parent 94f3a36 commit 010b674
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion runtime/golang.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ func (d *Golang) GenerateDockerfile(path string) ([]byte, error) {
var golangTemplate = strings.TrimSpace(`
ARG VERSION={{.Version}}
ARG BUILDPLATFORM=linux/amd64
FROM --platform=${BUILDPLATFORM} golang:${VERSION} AS base
ARG BUILDER=docker.io/library/golang
FROM --platform=${BUILDPLATFORM} ${BUILDER}:${VERSION} AS base
FROM base AS deps
WORKDIR /go/src/app
Expand Down

0 comments on commit 010b674

Please sign in to comment.