Preserve current rendering, operator and retained-source behavior while integrating script quality, meaningful headers and strict Error Prone/NullAway contracts. Production and test compilation and the 189-case verification gate pass with zero failures and one intentional workload skip. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Signed-off-by: James Maes <james@kof22.com>
22 lines
1.5 KiB
Docker
22 lines
1.5 KiB
Docker
# Copyright 2026 Kingsrook, LLC
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
FROM mcr.microsoft.com/dotnet/sdk:10.0@sha256:de4fe90a98845d75910b9769662465c84de1a934665c431279d1382b2bddc02b AS build
|
|
# Exact reviewed published Core source; no workstation DLL or mutable branch.
|
|
ADD --checksum=sha256:82fcdbf7240760939a63b219aeb15a2333b3a8a02b52307a8a328500fca71fb6 https://github.com/QRun-IO/qqq-print-agent/archive/346fc285198908c47a2ee9db7b9adb53d5e88c3c.tar.gz /tmp/client.tar.gz
|
|
RUN mkdir /client && tar -xzf /tmp/client.tar.gz -C /client --strip-components=1 && rm /tmp/client.tar.gz
|
|
RUN dotnet build /client/src/Qqq.PrintAgent.Core/Qqq.PrintAgent.Core.csproj -c Release -p:Platform=x64 -p:Version=0.3.1-rc.1 -p:RestoreLockedMode=true --nologo
|
|
RUN mkdir /core && cp /client/src/Qqq.PrintAgent.Core/bin/x64/Release/net10.0/Qqq.PrintAgent.Core.dll /core/
|
|
COPY dev/Directory.Build.props dev/Directory.Packages.props dev/.editorconfig dev/global.json /fixture/dev/
|
|
WORKDIR /fixture/dev/client
|
|
COPY dev/client .
|
|
RUN dotnet build -c Release -p:RestoreLockedMode=true --nologo -o /out
|
|
RUN dotnet format --verify-no-changes --severity warn --no-restore
|
|
RUN dotnet /out/Workload.dll --check-discovery
|
|
# SDK image is reused deliberately: one pinned image, no hidden host SDK dependency.
|
|
FROM mcr.microsoft.com/dotnet/sdk:10.0@sha256:de4fe90a98845d75910b9769662465c84de1a934665c431279d1382b2bddc02b
|
|
WORKDIR /app
|
|
COPY --from=build /out .
|
|
ENV DOTNET_EnableDiagnostics=0
|
|
ENTRYPOINT ["dotnet","/app/Workload.dll"]
|