#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/nightly/aspnet:8.0-preview AS base WORKDIR /app FROM mcr.microsoft.com/dotnet/nightly/runtime:8.0-preview AS runtime EXPOSE 8080 FROM mcr.microsoft.com/dotnet/nightly/sdk:8.0-preview AS build WORKDIR /src COPY ["Gremlin_BlazorServer/Gremlin_BlazorServer.csproj", "Gremlin_BlazorServer/"] RUN dotnet restore "Gremlin_BlazorServer/Gremlin_BlazorServer.csproj" COPY . . WORKDIR "/src/Gremlin_BlazorServer" RUN dotnet build "Gremlin_BlazorServer.csproj" -c Release -o /app/build FROM runtime AS run RUN dotnet dev-certs https RUN dotnet dev-certs https --trust FROM build AS publish RUN dotnet publish "Gremlin_BlazorServer.csproj" -c Release -o /app/publish /p:UseAppHost=false FROM base AS final WORKDIR /app COPY --from=publish /app/publish . ENTRYPOINT ["dotnet", "Gremlin_BlazorServer.dll"]