File tree Expand file tree Collapse file tree 9 files changed +22
-22
lines changed Expand file tree Collapse file tree 9 files changed +22
-22
lines changed Original file line number Diff line number Diff line change 12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
14
15
- FROM alpine:3.19 as user
15
+ FROM alpine:3.21 AS user
16
16
17
17
ENV USER=nonroot
18
18
ENV UID=10001
@@ -27,7 +27,7 @@ RUN adduser \
27
27
--uid "${UID}" \
28
28
"${USER}"
29
29
30
- FROM golang:1.23-alpine3.19 as builder
30
+ FROM golang:1.23-alpine3.21 AS builder
31
31
32
32
ARG TARGETARCH
33
33
ARG TARGETOS
@@ -58,7 +58,7 @@ RUN echo ${VERSION}
58
58
RUN CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -trimpath -ldflags="-s -w -X k8s.io/dashboard/api/pkg/environment.Version=${VERSION}" -o dashboard-api .
59
59
60
60
# Scratch can be used as the base image because the binary is compiled to include all dependencies.
61
- FROM scratch as final
61
+ FROM scratch AS final
62
62
63
63
COPY --from=builder /workspace/api/dashboard-api /dashboard-api
64
64
Original file line number Diff line number Diff line change 14
14
15
15
# ! Context expected to be set to "modules" dir !
16
16
17
- FROM golang:1.23-alpine3.19 as AIR
17
+ FROM golang:1.23-alpine3.21 AS AIR
18
18
19
19
RUN go install github.com/air-verse/air@latest
20
20
21
- FROM golang:1.23-alpine3.19
21
+ FROM golang:1.23-alpine3.21
22
22
23
23
# Copy air binary
24
24
COPY --from=AIR $GOPATH/bin/air $GOPATH/bin/air
Original file line number Diff line number Diff line change 12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
14
15
- FROM alpine:3.19 as user
15
+ FROM alpine:3.21 AS user
16
16
17
17
ENV USER=nonroot
18
18
ENV UID=10001
@@ -27,7 +27,7 @@ RUN adduser \
27
27
--uid "${UID}" \
28
28
"${USER}"
29
29
30
- FROM golang:1.23-alpine3.19 as builder
30
+ FROM golang:1.23-alpine3.21 AS builder
31
31
32
32
ARG TARGETARCH
33
33
ARG TARGETOS
@@ -58,7 +58,7 @@ RUN CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -trimpath -ldfl
58
58
59
59
# Scratch can be used as the base image because the backend is compiled to include all
60
60
# its dependencies.
61
- FROM scratch as final
61
+ FROM scratch AS final
62
62
ARG TARGETARCH
63
63
ARG TARGETOS
64
64
Original file line number Diff line number Diff line change 14
14
15
15
# ! Context expected to be set to "modules" dir !
16
16
17
- FROM golang:1.23-alpine3.19 as AIR
17
+ FROM golang:1.23-alpine3.21 AS AIR
18
18
19
19
RUN go install github.com/air-verse/air@latest
20
20
21
- FROM golang:1.23-alpine3.19
21
+ FROM golang:1.23-alpine3.21
22
22
23
23
# Copy air binary
24
24
COPY --from=AIR $GOPATH/bin/air $GOPATH/bin/air
Original file line number Diff line number Diff line change 12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
14
15
- FROM alpine:3.19 as user
15
+ FROM alpine:3.21 AS user
16
16
17
17
ENV USER=nonroot
18
18
ENV UID=10001
@@ -27,7 +27,7 @@ RUN adduser \
27
27
--uid "${UID}" \
28
28
"${USER}"
29
29
30
- FROM golang:1.23-alpine3.19 as builder
30
+ FROM golang:1.23-alpine3.21 AS builder
31
31
32
32
ARG TARGETARCH
33
33
ARG TARGETOS
@@ -52,7 +52,7 @@ COPY metrics-scraper/main.go ./
52
52
RUN CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -trimpath -ldflags="-s -w -X k8s.io/dashboard/metrics-scraper/pkg/environment.Version=${VERSION}" -o dashboard-metrics-scraper .
53
53
54
54
# Scratch can be used as the base image because the binary is compiled to include all dependencies.
55
- FROM scratch as final
55
+ FROM scratch AS final
56
56
57
57
COPY --from=builder /workspace/metrics-scraper/dashboard-metrics-scraper /dashboard-metrics-scraper
58
58
Original file line number Diff line number Diff line change 12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
14
15
- FROM golang:1.23-alpine3.19 as AIR
15
+ FROM golang:1.23-alpine3.21 AS AIR
16
16
17
17
RUN go install github.com/air-verse/air@latest
18
18
19
- FROM golang:1.23-alpine3.19
19
+ FROM golang:1.23-alpine3.21
20
20
21
21
# Copy air binary
22
22
COPY --from=AIR $GOPATH/bin/air $GOPATH/bin/air
Original file line number Diff line number Diff line change 14
14
15
15
ARG WEB_BUILDER_ARCH=amd64
16
16
17
- FROM alpine:3.19 as user
17
+ FROM alpine:3.21 AS user
18
18
19
19
ENV USER=nonroot
20
20
ENV UID=10001
@@ -29,7 +29,7 @@ RUN adduser \
29
29
--uid "${UID}" \
30
30
"${USER}"
31
31
32
- FROM --platform=linux/${WEB_BUILDER_ARCH} node:20.11.1 -alpine3.19 as web-builder
32
+ FROM --platform=linux/${WEB_BUILDER_ARCH} node:20-alpine3.21 AS web-builder
33
33
34
34
RUN apk add --no-cache \
35
35
make \
@@ -53,7 +53,7 @@ RUN SKIP_POSTINSTALL=true yarn workspaces focus
53
53
# Build prod version of web app
54
54
RUN make build-frontend
55
55
56
- FROM golang:1.23-alpine3.19 as go-builder
56
+ FROM golang:1.23-alpine3.21 AS go-builder
57
57
58
58
ARG TARGETARCH
59
59
ARG TARGETOS
@@ -82,7 +82,7 @@ COPY /modules/web/main.go ./
82
82
RUN CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -trimpath -ldflags="-s -w -X k8s.io/dashboard/web/pkg/environment.Version=${VERSION}" -o dashboard-web .
83
83
84
84
# Scratch can be used as the base image because the binary is compiled to include all dependencies.
85
- FROM scratch as final
85
+ FROM scratch AS final
86
86
87
87
WORKDIR /web
88
88
Original file line number Diff line number Diff line change 14
14
15
15
# ! Context expected to be set to "modules" dir !
16
16
17
- FROM golang:1.23-alpine3.19 as AIR
17
+ FROM golang:1.23-alpine3.21 AS AIR
18
18
19
19
RUN go install github.com/air-verse/air@latest
20
20
21
- FROM golang:1.23-alpine3.19
21
+ FROM golang:1.23-alpine3.21
22
22
23
23
# Copy air binary
24
24
COPY --from=AIR $GOPATH/bin/air $GOPATH/bin/air
Original file line number Diff line number Diff line change 12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
14
15
- FROM node:20-alpine3.19
15
+ FROM node:20-alpine3.21
16
16
17
17
WORKDIR /workspace
18
18
You can’t perform that action at this time.
0 commit comments