feat(agent): align FrameAnalyzerService with spec §16 — IntraOpNumThreads, MinConfidence, model path (#169)

This commit is contained in:
Arnaud Dartois authored and Arnaud Dartois committed 2026-08-27 00:36:03 +02:00
1 parent e0290c8a1b
commit 4b3068e12f
3 files changed
+74 -15

No files matched your search

+7 -1
View File
@@ -21,13 +21,19 @@ RUN dotnet publish src/Heimdall.Agent/Heimdall.Agent.csproj -c Release -o /app -
FROM mcr.microsoft.com/dotnet/aspnet:10.0-alpine AS runtime
WORKDIR /app
RUN apk add --no-cache icu-libs libstdc++ ffmpeg krb5
RUN apk add --no-cache icu-libs libstdc++ ffmpeg krb5 wget
ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false
ENV ASPNETCORE_URLS=http://+:8080
COPY --from=build /app .
# Download YOLOv8n ONNX model (spec §16: yolov8n, ~6MB)
ARG YOLO_MODEL_URL=https://github.com/ultralytics/assets/releases/download/v8.2.0/yolov8n.onnx
RUN mkdir -p models && \
wget -q -O models/yolov8n.onnx "$YOLO_MODEL_URL" && \
echo "YOLOv8n model downloaded: $(du -sh models/yolov8n.onnx | cut -f1)"
HEALTHCHECK --interval=30s --timeout=5s --start-period=15s --retries=3 \
CMD wget --no-verbose --tries=1 --spider http://localhost:8080/healthz || exit 1