Files
cluster-map/Dockerfile
T
fanchji 8f9c650960 initial: graph backend (client-go) + cytoscape.js topology frontend
Namespaces as compound parents, Deployment/StatefulSet/DaemonSet/CronJob
as workload nodes, Service/Ingress with edges derived from label-selector
matching and backend references, plus a physical-node layer via pod
placement. Click-through to live YAML manifest per node.
2026-09-23 17:40:44 +03:00

15 lines
307 B
Docker

FROM golang:1.22-alpine AS build
WORKDIR /src
COPY go.mod go.sum* ./
RUN go mod download
COPY main.go ./
RUN CGO_ENABLED=0 go build -o /cluster-map .
FROM alpine:3.20
RUN adduser -D -u 10001 app
COPY --from=build /cluster-map /cluster-map
COPY static /static
USER app
WORKDIR /
ENTRYPOINT ["/cluster-map"]