From dea28b8f02e42a0a466dbc107453ee491ad172eb Mon Sep 17 00:00:00 2001 From: Bardin08 Date: Sat, 18 May 2024 02:21:02 +0300 Subject: [PATCH] Try to build a project via sln --- ValidationService/Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ValidationService/Dockerfile b/ValidationService/Dockerfile index cf94b26..c8313b3 100644 --- a/ValidationService/Dockerfile +++ b/ValidationService/Dockerfile @@ -5,15 +5,15 @@ WORKDIR /app FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build WORKDIR /src -COPY ./ValidationService/ ./ +COPY ./ ./ ARG NUGET_API_KEY RUN dotnet nuget add source https://nuget.pkg.github.com/trumpee/index.json --name github --username trumpee --password $NUGET_API_KEY --store-password-in-clear-text -RUN ls -alF && dotnet restore "ValidationService.csproj" --source "https://api.nuget.org/v3/index.json" --source "https://nuget.pkg.github.com/trumpee/index.json" -RUN dotnet build "ValidationService.csproj" -c Release -o /app/build --no-restore +RUN ls -alF && dotnet restore "ValidationService.sln" --source "https://api.nuget.org/v3/index.json" --source "https://nuget.pkg.github.com/trumpee/index.json" +RUN dotnet build "ValidationService.sln" -c Release -o /app/build --no-restore FROM build AS publish -RUN dotnet publish "ValidationService.csproj" -c Release -o /app/publish +RUN dotnet publish "ValidationService.sln" -c Release -o /app/publish FROM base AS final WORKDIR /app