Clean output

main
ilitirit 3 years ago
parent bcb941c381
commit 2f1da677d4

@ -6,14 +6,20 @@ WORKDIR /src
# Copy the project files # Copy the project files
COPY Expedience.Models/Expedience.Models.csproj Expedience.Models/ 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.Infrastructure/Expedience.Infrastructure.csproj Expedience.Infrastructure/
COPY Expedience.Api/Expedience.Api.csproj Expedience.Api/
# Restore the packages # Restore the packages
RUN dotnet restore Expedience.Api/Expedience.Api.csproj RUN dotnet restore Expedience.Api/Expedience.Api.csproj
COPY . . 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 # Build the project
RUN dotnet build "Expedience.Api/Expedience.Api.csproj" -c Release -o /app/build RUN dotnet build "Expedience.Api/Expedience.Api.csproj" -c Release -o /app/build

Loading…
Cancel
Save