From ae1e17f5ed09af967d16950de928edbfbf22a624 Mon Sep 17 00:00:00 2001 From: henrygd Date: Mon, 22 Sep 2025 17:41:27 -0400 Subject: [PATCH] add dockerfile for henrygd/beszel-agent-intel --- internal/dockerfile_agent_intel | 25 +++++++++++++++++++ .../site/src/components/routes/system.tsx | 3 ++- 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 internal/dockerfile_agent_intel diff --git a/internal/dockerfile_agent_intel b/internal/dockerfile_agent_intel new file mode 100644 index 00000000..28bd3d94 --- /dev/null +++ b/internal/dockerfile_agent_intel @@ -0,0 +1,25 @@ +FROM --platform=$BUILDPLATFORM golang:alpine AS builder + +WORKDIR /app + +COPY ../go.mod ../go.sum ./ +RUN go mod download + +# Copy source files +COPY . ./ + +# Build +ARG TARGETOS TARGETARCH +RUN CGO_ENABLED=0 GOGC=75 GOOS=$TARGETOS GOARCH=$TARGETARCH go build -ldflags "-w -s" -o /agent ./internal/cmd/agent + +# -------------------------- +# Final image: default scratch-based agent +# Note: must cap_add: [CAP_PERFMON] in docker-compose.yml +# -------------------------- +FROM alpine:edge + +COPY --from=builder /agent /agent + +RUN apk add --no-cache -X https://dl-cdn.alpinelinux.org/alpine/edge/testing igt-gpu-tools + +ENTRYPOINT ["/agent"] \ No newline at end of file diff --git a/internal/site/src/components/routes/system.tsx b/internal/site/src/components/routes/system.tsx index 3699db24..35ee75fe 100644 --- a/internal/site/src/components/routes/system.tsx +++ b/internal/site/src/components/routes/system.tsx @@ -778,7 +778,7 @@ export default memo(function SystemDetail({ name }: { name: string }) {
{hasGpuEnginesData && (