From 521d202824e36fe8e4dc55cfeb891bb3222a25b4 Mon Sep 17 00:00:00 2001 From: Oliver Booth Date: Tue, 27 Feb 2024 13:39:11 +0000 Subject: [PATCH] build: skip dotnet restore and dotnet build These steps are executed as part of dotnet publish --- OliverBooth/Dockerfile | 2 -- 1 file changed, 2 deletions(-) diff --git a/OliverBooth/Dockerfile b/OliverBooth/Dockerfile index 40e2a42..b93dbc3 100644 --- a/OliverBooth/Dockerfile +++ b/OliverBooth/Dockerfile @@ -15,11 +15,9 @@ FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build COPY --from=build-deps /src/OliverBooth/wwwroot /src/OliverBooth/wwwroot WORKDIR /src COPY ["OliverBooth/OliverBooth.csproj", "OliverBooth/"] -RUN dotnet restore "OliverBooth/OliverBooth.csproj" COPY . . WORKDIR "/src/OliverBooth" -RUN dotnet build "OliverBooth.csproj" -c Release -o /app/build FROM build AS publish RUN dotnet publish "OliverBooth.csproj" -c Release -o /app/publish /p:UseAppHost=false