File tree Expand file tree Collapse file tree 2 files changed +7
-8
lines changed
components/tensorboard-controller Expand file tree Collapse file tree 2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change 33#
44# ${PATH_TO_KUBEFLOW/KUBEFLOW repo}/components
55#
6- FROM golang:1.17 as builder
6+ FROM golang:1.24 as builder
77
8- WORKDIR /workspace
8+ WORKDIR /workspace/tensorboard-controller
99# Copy the Go Modules manifests
1010COPY tensorboard-controller /workspace/tensorboard-controller
1111# cache deps before building and copying source so that we don't need to re-download as much
1212# and so that source changes don't invalidate our downloaded layer
13- RUN cd /workspace/tensorboard-controller && go mod download
14-
15- WORKDIR /workspace/tensorboard-controller
13+ COPY tensorboard-controller/go.mod tensorboard-controller/go.sum ./
14+ RUN go mod download
1615
1716# Build
18- RUN CGO_ENABLED=0 GOOS=linux GO111MODULE=on go build -a -o manager main.go
17+ RUN CGO_ENABLED=0 GOOS=linux go build -a -o / manager main.go
1918
2019# Use distroless as minimal base image to package the manager binary
2120# Refer to https://github.com/GoogleContainerTools/distroless for more details
2221FROM gcr.io/distroless/static:nonroot
2322WORKDIR /
24- COPY --from=builder /workspace/tensorboard-controller/manager .
2523USER 65532:65532
24+ COPY --from=builder /manager /manager
2625
2726ENTRYPOINT ["/manager" ]
Original file line number Diff line number Diff line change 11module github.com/kubeflow/kubeflow/components/tensorboard-controller
22
3- go 1.17
3+ go 1.24
44
55require (
66 github.com/go-logr/logr v1.2.0
You can’t perform that action at this time.
0 commit comments