From daecb9513c52dd23d0f32c1da4c804141f7ce9cd Mon Sep 17 00:00:00 2001 From: Sergey Kanzhelev Date: Tue, 12 Aug 2025 18:08:36 +0000 Subject: [PATCH] fix dockerfile warnings --- Dockerfile | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index cb5d49f21..9c29a0c13 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,14 +19,13 @@ # Must override builder-base, not builder, since the latter is referred to later in the file and so must not be # directly replaced. See here, and note that "stage" parameter mentioned there has been renamed to # "build-context": https://github.com/docker/buildx/pull/904#issuecomment-1005871838 -FROM golang:1.24-bookworm@sha256:00eccd446e023d3cd9566c25a6e6a02b90db3e1e0bbe26a48fc29cd96e800901 as builder-base -FROM builder-base as builder -LABEL maintainer="Andy Xie " +FROM golang:1.24-bookworm@sha256:00eccd446e023d3cd9566c25a6e6a02b90db3e1e0bbe26a48fc29cd96e800901 AS builder-base +FROM builder-base AS builder ARG TARGETARCH -ENV GOPATH /gopath/ -ENV PATH $GOPATH/bin:$PATH +ENV GOPATH=/gopath/ +ENV PATH=$GOPATH/bin:$PATH RUN apt-get update --fix-missing && apt-get --yes install libsystemd-dev gcc-aarch64-linux-gnu RUN go version @@ -35,7 +34,7 @@ COPY . /gopath/src/k8s.io/node-problem-detector/ WORKDIR /gopath/src/k8s.io/node-problem-detector RUN GOARCH=${TARGETARCH} make bin/node-problem-detector bin/health-checker bin/log-counter -FROM --platform=${TARGETPLATFORM} registry.k8s.io/build-image/debian-base:bookworm-v1.0.5@sha256:dd9c1f36c33b410480f6e6dcdfc075b0dfcab2c137953dd40189dbd06bdf9938 as base +FROM registry.k8s.io/build-image/debian-base:bookworm-v1.0.5@sha256:dd9c1f36c33b410480f6e6dcdfc075b0dfcab2c137953dd40189dbd06bdf9938 AS base LABEL maintainer="Random Liu "