File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 13
13
# limitations under the License.
14
14
ARG BASEIMAGE
15
15
16
- FROM golang:1.22.1-bookworm@sha256:6699d2852712f090399ccd4e8dfd079b4d55376f3ab3aff5b2dc8b7b1c11e27e as builder
16
+ # "builder-base" can be overriden using dockerb buildx's --build-context flag,
17
+ # by users who want to use a different images for the builder. E.g. if you need to use an older OS
18
+ # to avoid dependencies on very recent glibc versions.
19
+ # E.g. of the param: --build-context builder-base=docker-image://golang:<something>@sha256:<something>
20
+ # Must override builder-base, not builder, since the latter is referred to later in the file and so must not be
21
+ # directly replaced. See here, and note that "stage" parameter mentioned there has been renamed to
22
+ # "build-context": https://github.com/docker/buildx/pull/904#issuecomment-1005871838
23
+ FROM golang:1.22.1-bookworm@sha256:6699d2852712f090399ccd4e8dfd079b4d55376f3ab3aff5b2dc8b7b1c11e27e as builder-base
24
+ FROM builder-base as builder
17
25
LABEL maintainer=
"Andy Xie <[email protected] >"
18
26
19
27
ARG TARGETARCH
You can’t perform that action at this time.
0 commit comments