I have created a .NET 8 web API and deployed in a container instace.
When I try to access the application, I am unable to access from container instace.
Docker file
*FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base
USER app
WORKDIR /app
EXPOSE 8080
EXPOSE 8081
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
ARG BUILD_CONFIGURATION=Release
WORKDIR /src
COPY ["Net8/Net8.csproj", "Net8/"]
RUN dotnet restore "./Net8/Net8.csproj"
COPY . .
WORKDIR "/src/Net8"
RUN dotnet build "./Net8.csproj" -c $BUILD_CONFIGURATION -o /app/build
FROM build AS publish
ARG BUILD_CONFIGURATION=Release
RUN dotnet publish "./Net8.csproj" -c $BUILD_CONFIGURATION -o /app/publish
/p:UseAppHost=false
FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT ["dotnet", "Net8.dll"]*
Is there any limitation with .NET?
