SimpleIdServer icon indicating copy to clipboard operation
SimpleIdServer copied to clipboard

docker had a problem deploying the "Website" project access

Open qq1176914912 opened this issue 9 months ago • 1 comments

The use project is the latest project in your main branch. The database is postgresql and is automatically generated by the project. I first used vis sutdio to generate the dockerfile file of the Website project:

#See https://aka.ms/customizecontainer to learn how to customize your debug container and how Visual Studio uses this Dockerfile to build your images for faster debugging. FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base WORKDIR /app EXPOSE 80 FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build ARG BUILD_CONFIGURATION=Release WORKDIR /src COPY ["src/IdServer/SimpleIdServer.IdServer.Website.Startup/SimpleIdServer.IdServer.Website.Startup.csproj", "src/IdServer/SimpleIdServer.IdServer.Website.Startup/"] COPY ["src/IdServer/SimpleIdServer.IdServer.Website/SimpleIdServer.IdServer.Website.csproj", "src/IdServer/SimpleIdServer.IdServer.Website/"] COPY ["src/IdServer/SimpleIdServer.Configuration/SimpleIdServer.Configuration.csproj", "src/IdServer/SimpleIdServer.Configuration/"] COPY ["src/IdServer/SimpleIdServer.IdServer/SimpleIdServer.IdServer.csproj", "src/IdServer/SimpleIdServer.IdServer/"] COPY ["src/Did/SimpleIdServer.Did/SimpleIdServer.Did.csproj", "src/Did/SimpleIdServer.Did/"] COPY ["src/Scim/SimpleIdServer.Scim.Client/SimpleIdServer.Scim.Client.csproj", "src/Scim/SimpleIdServer.Scim.Client/"] COPY ["src/Scim/SimpleIdServer.Scim.Parser/SimpleIdServer.Scim.Parser.csproj", "src/Scim/SimpleIdServer.Scim.Parser/"] COPY ["src/Scim/SimpleIdServer.Scim.Domains/SimpleIdServer.Scim.Domains.csproj", "src/Scim/SimpleIdServer.Scim.Domains/"] COPY ["src/IdServer/EncrNetwork.Extensions/EncrNetwork.Extensions.csproj", "src/IdServer/EncrNetwork.Extensions/"] COPY ["src/IdServer/SimpleIdServer.DPoP/SimpleIdServer.DPoP.csproj", "src/IdServer/SimpleIdServer.DPoP/"] COPY ["src/IdServer/SimpleIdServer.IdServer.Domains/SimpleIdServer.IdServer.Domains.csproj", "src/IdServer/SimpleIdServer.IdServer.Domains/"] COPY ["src/IdServer/SimpleIdServer.IdServer.Helpers/SimpleIdServer.IdServer.Helpers.csproj", "src/IdServer/SimpleIdServer.IdServer.Helpers/"] COPY ["src/IdServer/SimpleIdServer.IdServer.IntegrationEvents/SimpleIdServer.IdServer.IntegrationEvents.csproj", "src/IdServer/SimpleIdServer.IdServer.IntegrationEvents/"] COPY ["src/IdServer/SimpleIdServer.IdServer.Federation/SimpleIdServer.IdServer.Federation.csproj", "src/IdServer/SimpleIdServer.IdServer.Federation/"] COPY ["src/IdServer/SimpleIdServer.OpenidFederation/SimpleIdServer.OpenidFederation.csproj", "src/IdServer/SimpleIdServer.OpenidFederation/"] COPY ["src/IdServer/SimpleIdServer.IdServer.Saml.Idp/SimpleIdServer.IdServer.Saml.Idp.csproj", "src/IdServer/SimpleIdServer.IdServer.Saml.Idp/"] COPY ["src/IdServer/SimpleIdServer.IdServer.WsFederation/SimpleIdServer.IdServer.WsFederation.csproj", "src/IdServer/SimpleIdServer.IdServer.WsFederation/"] COPY ["src/IdServer/SimpleIdServer.OpenIdConnect/SimpleIdServer.OpenIdConnect.csproj", "src/IdServer/SimpleIdServer.OpenIdConnect/"] RUN dotnet restore "./src/IdServer/SimpleIdServer.IdServer.Website.Startup/SimpleIdServer.IdServer.Website.Startup.csproj" COPY . . WORKDIR "/src/src/IdServer/SimpleIdServer.IdServer.Website.Startup" RUN dotnet build "./SimpleIdServer.IdServer.Website.Startup.csproj" -c $BUILD_CONFIGURATION -o /app/build FROM build AS publish ARG BUILD_CONFIGURATION=Release RUN dotnet publish "./SimpleIdServer.IdServer.Website.Startup.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false FROM base AS final WORKDIR /app COPY --from=publish /app/publish . ENTRYPOINT ["dotnet", "SimpleIdServer.IdServer.Website.Startup.dll"]

then built and published the Docker image. After that, I deployed the image to a Linux environment, and when I started the container, there were no errors—the project seemed to run normally. However, when I tried to access it, I encountered an issue, The website page is blank and shows this error after F12: Image website log display error: Image

qq1176914912 avatar Apr 09 '25 09:04 qq1176914912

Hello, the master branch will be fixed once the Ticket852 branch is merged. It contains all the changes introduced in release 6.0.0 and will resolve this issue.

thabart avatar Apr 09 '25 09:04 thabart