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

- 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:25 +00:00
parent f00ade566c
commit 82068bf8f8

View File

@@ -19,6 +19,9 @@ RUN dotnet publish "BackOffice.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 .