From 7a7cd9966b7304bcb9379f1e2b97be7e45f097e9 Mon Sep 17 00:00:00 2001 From: James Tombleson Date: Thu, 15 Jun 2023 21:52:00 -0700 Subject: [PATCH] docker cleanup --- Newsbot.Portal.Blazor.Server/Dockerfile | 20 ------------------- .../Newsbot.Portal.Blazor.Server.csproj | 6 ------ 2 files changed, 26 deletions(-) delete mode 100644 Newsbot.Portal.Blazor.Server/Dockerfile diff --git a/Newsbot.Portal.Blazor.Server/Dockerfile b/Newsbot.Portal.Blazor.Server/Dockerfile deleted file mode 100644 index 2320354..0000000 --- a/Newsbot.Portal.Blazor.Server/Dockerfile +++ /dev/null @@ -1,20 +0,0 @@ -FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS base -WORKDIR /app -EXPOSE 80 -EXPOSE 443 - -FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build -WORKDIR /src -COPY ["Newsbot.Portal.Blazor.Server/Newsbot.Portal.Blazor.Server.csproj", "Newsbot.Portal.Blazor.Server/"] -RUN dotnet restore "Newsbot.Portal.Blazor.Server/Newsbot.Portal.Blazor.Server.csproj" -COPY . . -WORKDIR "/src/Newsbot.Portal.Blazor.Server" -RUN dotnet build "Newsbot.Portal.Blazor.Server.csproj" -c Release -o /app/build - -FROM build AS publish -RUN dotnet publish "Newsbot.Portal.Blazor.Server.csproj" -c Release -o /app/publish /p:UseAppHost=false - -FROM base AS final -WORKDIR /app -COPY --from=publish /app/publish . -ENTRYPOINT ["dotnet", "Newsbot.Portal.Blazor.Server.dll"] diff --git a/Newsbot.Portal.Blazor.Server/Newsbot.Portal.Blazor.Server.csproj b/Newsbot.Portal.Blazor.Server/Newsbot.Portal.Blazor.Server.csproj index a6da8b6..8ff23fb 100644 --- a/Newsbot.Portal.Blazor.Server/Newsbot.Portal.Blazor.Server.csproj +++ b/Newsbot.Portal.Blazor.Server/Newsbot.Portal.Blazor.Server.csproj @@ -7,12 +7,6 @@ Linux - - - .dockerignore - - -