I am trying to containerize this new 'React And Dotnet' template and want to deploy it as a single app on Azure App Service, like the previous one 'React With Dotnet' was available in Visual studio till version 17.7
Example Of template

Docker File According to the docs here
#See https://aka.ms/customizecontainer to learn how to customize your debug container and how Visual Studio uses this Docker file to build your images for faster debugging.
FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base
WORKDIR /app
EXPOSE 8080
EXPOSE 8081
RUN apt-get update
RUN apt-get install -y curl
RUN apt-get install -y libpng-dev libjpeg-dev curl libxi6 build-essential libgl1-mesa-glx
RUN curl -sL https://deb.nodesource.com/setup_lts.x | bash -
RUN apt-get install -y nodejs
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
RUN apt-get update
RUN apt-get install -y curl
RUN apt-get install -y libpng-dev libjpeg-dev curl libxi6 build-essential libgl1-mesa-glx
RUN curl -sL https://deb.nodesource.com/setup_lts.x | bash -
RUN apt-get install -y nodejs
ARG BUILD_CONFIGURATION=Release
WORKDIR /src
COPY ["barcodebtpl.client/nuget.config", "barcodebtpl.client/"]
COPY ["BarcodeBTPL.Server/BarcodeBTPL.Server.csproj", "BarcodeBTPL.Server/"]
COPY ["barcodebtpl.client/barcodebtpl.client.esproj", "barcodebtpl.client/"]
RUN dotnet restore "./BarcodeBTPL.Server/./BarcodeBTPL.Server.csproj"
COPY . .
WORKDIR "/src/BarcodeBTPL.Server"
RUN dotnet build "./BarcodeBTPL.Server.csproj" -c $BUILD_CONFIGURATION -o /app/build
FROM build AS publish
ARG BUILD_CONFIGURATION=Release
RUN dotnet publish "./BarcodeBTPL.Server.csproj" -c $BUILD_CONFIGURATION -o /app/publish /p:UseAppHost=false
FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT ["dotnet", "BarcodeBTPL.Server.dll"]
I know it is deployable as a single app reference but unable to do so.
I have tried it to run in docker but it is only showing the swagger UI and when i am trying the base path directly e.g. https://localhost:32776/
it is giving me 404 although it should render the weather forecast table as it in the the App.tsx.
App.tsx 
Update I have tried it to deploy on azure app service directly and it worked but not working with docker i don't know why so most probably there is an issue in my docker file.