fix: Remove default nginx files before copying Blazor WASM output
All checks were successful
Build and Deploy / build (push) Successful in 1m51s

- nginx:alpine has default index.html that prevents Blazor from loading
- Added RUN rm -rf /usr/share/nginx/html/* before COPY
This commit is contained in:
masoud
2025-12-07 23:30:17 +00:00
parent 0395c74041
commit 380b4788dd

View File

@@ -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 .