sqlinsight-pro/deploy/hub/Dockerfile
Claude 19fbb02045
Some checks are pending
CI / Build og unit tests (push) Waiting to run
CI / Integration (mcr.microsoft.com/mssql/server:2017-latest) (push) Blocked by required conditions
CI / Integration (mcr.microsoft.com/mssql/server:2019-latest) (push) Blocked by required conditions
CI / Integration (mcr.microsoft.com/mssql/server:2022-latest) (push) Blocked by required conditions
CI / Integration (mcr.microsoft.com/mssql/server:2025-latest) (push) Blocked by required conditions
Fase 3: data processing, hub retention and deployment
Hub: nightly retention of resolved findings, the submission log and
silent instances; delete-customer erases a customer's data and blocks
its licenses; persistent data protection keys and trusted reverse
proxies. Docker image and compose file with PostgreSQL. The agent
refuses to send the license to a non-https hub. Documentation for the
hub, for data processing (GDPR basis for a data processing agreement)
and the README roadmap for phase 3.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01E3EExwndy8Z22EK2Qpt6BK
2026-09-29 09:29:20 +00:00

18 lines
621 B
Docker

# SQLInsight Hub. Build from the repository root:
# docker build -f deploy/hub/Dockerfile -t sqlinsight-hub .
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
WORKDIR /src
COPY . .
RUN dotnet publish src/SQLInsight.Hub -c Release -o /app
FROM mcr.microsoft.com/dotnet/aspnet:10.0
WORKDIR /app
COPY --from=build /app .
# Keys for login cookies, and the update feed, live on volumes.
ENV ASPNETCORE_HTTP_PORTS=8080 \
SQLInsight__Hub__DataProtectionKeysPath=/data/keys
RUN mkdir -p /data/keys /data/feed && chown -R $APP_UID /data
VOLUME ["/data"]
USER $APP_UID
EXPOSE 8080
ENTRYPOINT ["dotnet", "SQLInsight.Hub.dll"]