add dockerfile for henrygd/beszel-agent-intel

This commit is contained in:
henrygd
2025-09-22 17:41:27 -04:00
parent 3abb7c213b
commit ae1e17f5ed
2 changed files with 27 additions and 1 deletions

View File

@@ -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"]

View File

@@ -778,7 +778,7 @@ export default memo(function SystemDetail({ name }: { name: string }) {
<div className="grid xl:grid-cols-2 gap-4">
{hasGpuEnginesData && (
<ChartCard
className="!col-span-1"
legend={true}
empty={dataEmpty}
grid={grid}
title={t`GPU Engines`}
@@ -792,6 +792,7 @@ export default memo(function SystemDetail({ name }: { name: string }) {
return (
<div key={id} className="contents">
<ChartCard
className="!col-span-1"
empty={dataEmpty}
grid={grid}
title={`${gpu.n} ${t`Usage`}`}