We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 18e3fe0 + 0a83f24 commit b4a80d6Copy full SHA for b4a80d6
1 file changed
Dockerfile
@@ -20,14 +20,14 @@
20
# directly replaced. See here, and note that "stage" parameter mentioned there has been renamed to
21
# "build-context": https://github.com/docker/buildx/pull/904#issuecomment-1005871838
22
FROM golang:1.24.6-bookworm@sha256:bdc7cfd953b2701fcd95fd591ea3d788f41e4b74f21f1787b9f9843a28e72196 AS builder-base
23
-FROM builder-base AS builder
+FROM --platform=$BUILDPLATFORM builder-base AS builder
24
25
ARG TARGETARCH
26
27
ENV GOPATH=/gopath/
28
ENV PATH=$GOPATH/bin:$PATH
29
30
-RUN apt-get update --fix-missing && apt-get --yes install libsystemd-dev gcc-aarch64-linux-gnu
+RUN apt-get update --fix-missing && apt-get --yes install libsystemd-dev
31
RUN go version
32
33
COPY . /gopath/src/k8s.io/node-problem-detector/
0 commit comments