From 380b4788ddca948e7ba4d1c2b8f477b2fe2f4856 Mon Sep 17 00:00:00 2001 From: masoud Date: Sun, 7 Dec 2025 23:30:17 +0000 Subject: [PATCH] fix: Remove default nginx files before copying Blazor WASM output - nginx:alpine has default index.html that prevents Blazor from loading - Added RUN rm -rf /usr/share/nginx/html/* before COPY --- src/FrontOffice.Main/Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/FrontOffice.Main/Dockerfile b/src/FrontOffice.Main/Dockerfile index 7a8b61f..09d3d59 100644 --- a/src/FrontOffice.Main/Dockerfile +++ b/src/FrontOffice.Main/Dockerfile @@ -19,6 +19,9 @@ RUN dotnet publish "FrontOffice.Main.csproj" -c Release -o /app/publish FROM nginx:alpine AS final WORKDIR /usr/share/nginx/html +# Remove default nginx files +RUN rm -rf /usr/share/nginx/html/* + # Copy published wwwroot (Blazor WASM output) COPY --from=build /app/publish/wwwroot .