Fix Dockerfile-worker-api-dev - Use ASP.NET Core runtime for SignalR dependency

This commit is contained in:
2025-11-09 05:13:28 +07:00
parent 1b03ba5348
commit f3b1d93db3

View File

@@ -1,5 +1,6 @@
# Use the official Microsoft .NET runtime as the base image (for worker service, not API) # Use the official Microsoft ASP.NET Core runtime as the base image
FROM mcr.microsoft.com/dotnet/runtime:8.0 AS base # Required because Microsoft.AspNetCore.SignalR.Core dependency needs ASP.NET Core runtime
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base
WORKDIR /app WORKDIR /app
# Use the official Microsoft .NET SDK image to build the code. # Use the official Microsoft .NET SDK image to build the code.