From b4bdcc160e65ce07f4ce9806f35243e8b400d87b Mon Sep 17 00:00:00 2001 From: AJ Isaacs Date: Thu, 25 Jun 2026 22:15:20 -0400 Subject: [PATCH] feat: make PepApi cross-platform for Linux Docker --- PepApi.Core/Program.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/PepApi.Core/Program.cs b/PepApi.Core/Program.cs index ec941a7..7e987cb 100644 --- a/PepApi.Core/Program.cs +++ b/PepApi.Core/Program.cs @@ -6,8 +6,9 @@ var builder = WebApplication.CreateBuilder(args); -// Enable Windows Service hosting -builder.Host.UseWindowsService(); +// Enable Windows Service hosting (only on Windows) +if (OperatingSystem.IsWindows()) + builder.Host.UseWindowsService(); // Add services to the container builder.Services.AddControllers()