blazor.web.js issues
This commit is contained in:
@@ -1,6 +1,11 @@
|
||||
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
|
||||
FROM mcr.microsoft.com/dotnet/sdk:10.0.101 AS build
|
||||
WORKDIR /src
|
||||
|
||||
# wasm-tools provides Microsoft.AspNetCore.App.Internal.Assets, which contains
|
||||
# blazor.web.js, blazor.server.js, and the other Blazor framework JS files.
|
||||
# Without this workload the publish output silently omits those files.
|
||||
RUN dotnet workload install wasm-tools
|
||||
|
||||
COPY Directory.Build.props ./
|
||||
COPY src/EntKube.Web/EntKube.Web.csproj src/EntKube.Web/
|
||||
COPY src/EntKube.Web.Client/EntKube.Web.Client.csproj src/EntKube.Web.Client/
|
||||
@@ -22,7 +27,7 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Run as non-root
|
||||
RUN addgroup --system appgroup && adduser --system --ingroup appgroup appuser
|
||||
RUN groupadd --system appgroup && useradd --system --gid appgroup --no-create-home appuser
|
||||
RUN mkdir -p /app/Data && chown appuser:appgroup /app/Data
|
||||
|
||||
COPY --from=build /app/publish .
|
||||
|
||||
Reference in New Issue
Block a user