I want to create a container from my .NET Core web application (it consists of multiple projects) which uses Windows Authentication . Here is my Dockerfile :
FROM microsoft/dotnet:2.1-aspnetcore-runtime AS base
WORKDIR /app
EXPOSE 80
FROM microsoft/dotnet:2.1-sdk AS build
COPY Solution.sln ./
COPY Project1/*.csproj ./Project1/
COPY Project2/*.csproj ./Project2/
COPY Project3/*.csproj ./Project3/
COPY Project4/*.csproj ./Project4/
COPY Project5/*.csproj ./Project5/
RUN dotnet restore
COPY . .
WORKDIR /Project1
RUN dotnet build -c Release -o /app
WORKDIR /Project2
RUN dotnet build -c Release -o /app
WORKDIR /Project3
RUN dotnet build -c Release -o /app
WORKDIR /Project4
RUN dotnet build -c Release -o /app
FROM build AS publish
RUN dotnet publish -c Release -o /app
FROM base AS final
WORKDIR /app
COPY --from=publish /app .
ENTRYPOINT ["dotnet", "Project4.dll"]
If I run the container, the website opens up but it doesn’t open log in dialogue and user information is missing. What is the easiest way to enable Windows authentication inside Docker container?