Skip to content

Commit daecb95

Browse files
fix dockerfile warnings
1 parent ccfaff5 commit daecb95

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

Dockerfile

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,13 @@
1919
# Must override builder-base, not builder, since the latter is referred to later in the file and so must not be
2020
# directly replaced. See here, and note that "stage" parameter mentioned there has been renamed to
2121
# "build-context": https://github.com/docker/buildx/pull/904#issuecomment-1005871838
22-
FROM golang:1.24-bookworm@sha256:00eccd446e023d3cd9566c25a6e6a02b90db3e1e0bbe26a48fc29cd96e800901 as builder-base
23-
FROM builder-base as builder
24-
LABEL maintainer="Andy Xie <[email protected]>"
22+
FROM golang:1.24-bookworm@sha256:00eccd446e023d3cd9566c25a6e6a02b90db3e1e0bbe26a48fc29cd96e800901 AS builder-base
23+
FROM builder-base AS builder
2524

2625
ARG TARGETARCH
2726

28-
ENV GOPATH /gopath/
29-
ENV PATH $GOPATH/bin:$PATH
27+
ENV GOPATH=/gopath/
28+
ENV PATH=$GOPATH/bin:$PATH
3029

3130
RUN apt-get update --fix-missing && apt-get --yes install libsystemd-dev gcc-aarch64-linux-gnu
3231
RUN go version
@@ -35,7 +34,7 @@ COPY . /gopath/src/k8s.io/node-problem-detector/
3534
WORKDIR /gopath/src/k8s.io/node-problem-detector
3635
RUN GOARCH=${TARGETARCH} make bin/node-problem-detector bin/health-checker bin/log-counter
3736

38-
FROM --platform=${TARGETPLATFORM} registry.k8s.io/build-image/debian-base:bookworm-v1.0.5@sha256:dd9c1f36c33b410480f6e6dcdfc075b0dfcab2c137953dd40189dbd06bdf9938 as base
37+
FROM registry.k8s.io/build-image/debian-base:bookworm-v1.0.5@sha256:dd9c1f36c33b410480f6e6dcdfc075b0dfcab2c137953dd40189dbd06bdf9938 AS base
3938

4039
LABEL maintainer="Random Liu <[email protected]>"
4140

0 commit comments

Comments
 (0)