【发布时间】:2021-07-22 15:43:38
【问题描述】:
我有可以从 VS studio 完美运行的 Blazor Webassembly 客户端应用程序,我在通过身份验证后使用 docker 进行部署,它返回 404,我已经部署到 Azure 并且遇到了同样的错误。
返回路径在 Azure AD 中设置正确。
我的 docker 文件
FROM mcr.microsoft.com/dotnet/core/sdk:3.1 AS build
WORKDIR /source
# copy csproj and restore as distinct layers
COPY ./clientApp/. ./clientApp/
FROM build AS publish
WORKDIR /source/clientApp/
RUN dotnet publish -c release
FROM nginx AS runtime
COPY --from=publish /source/clientApp/bin/release/netstandard2.1/publish/wwwroot/. /usr/share/nginx/html/.
ADD ./clientApp/default.conf /etc/nginx/conf.d/default.conf
错误
http://localhost:8080/authentication/login-callback#id_token= <tokenvalue>" // 404 not found nginx 1.19.10
这里有什么问题?
【问题讨论】:
标签: azure docker azure-active-directory dockerfile blazor-webassembly