From 2f1da677d497434f2a50cfaeb8f78d5ea0a4a614 Mon Sep 17 00:00:00 2001 From: ilitirit Date: Wed, 12 Apr 2023 00:59:16 +0200 Subject: [PATCH] Clean output --- Expedience.Api/Dockerfile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Expedience.Api/Dockerfile b/Expedience.Api/Dockerfile index c0f7b80..cceb278 100644 --- a/Expedience.Api/Dockerfile +++ b/Expedience.Api/Dockerfile @@ -6,14 +6,20 @@ WORKDIR /src # Copy the project files COPY Expedience.Models/Expedience.Models.csproj Expedience.Models/ -COPY Expedience.Api/Expedience.Api.csproj Expedience.Api/ COPY Expedience.Infrastructure/Expedience.Infrastructure.csproj Expedience.Infrastructure/ +COPY Expedience.Api/Expedience.Api.csproj Expedience.Api/ + # Restore the packages RUN dotnet restore Expedience.Api/Expedience.Api.csproj COPY . . +# Clean +RUN dotnet clean "Expedience.Models/Expedience.Models.csproj" +RUN dotnet clean "Expedience.Infrastructure/Expedience.Infrastructure.csproj" +RUN dotnet clean "Expedience.Infrastructure/Expedience.Api.csproj" + # Build the project RUN dotnet build "Expedience.Api/Expedience.Api.csproj" -c Release -o /app/build