fix isSystemdAvailable in containers and update alpine to 3.23

This commit is contained in:
henrygd
2026-01-11 16:07:24 -05:00
parent 0dfd5ce07d
commit 0c6c53fc7d
3 changed files with 13 additions and 6 deletions

View File

@@ -17,7 +17,7 @@ RUN rm -rf /tmp/*
# --------------------------
# Final image: default scratch-based agent
# --------------------------
FROM alpine:3.22
FROM alpine:3.23
COPY --from=builder /agent /agent
RUN apk add --no-cache smartmontools

View File

@@ -16,7 +16,7 @@ RUN CGO_ENABLED=0 GOGC=75 GOOS=$TARGETOS GOARCH=$TARGETARCH go build -ldflags "-
# Final image
# Note: must cap_add: [CAP_PERFMON] and mount /dev/dri/ as volume
# --------------------------
FROM alpine:3.22
FROM alpine:3.23
COPY --from=builder /agent /agent