From b42c30fbee43859834a396def6f3b0b877cfc37b Mon Sep 17 00:00:00 2001 From: Bardin08 Date: Sat, 18 May 2024 02:11:06 +0300 Subject: [PATCH 1/2] Finalize Dockerfile --- ValidationService/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ValidationService/Dockerfile b/ValidationService/Dockerfile index ec1699c..cf94b26 100644 --- a/ValidationService/Dockerfile +++ b/ValidationService/Dockerfile @@ -5,11 +5,11 @@ WORKDIR /app FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build WORKDIR /src -COPY . ./ +COPY ./ValidationService/ ./ 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 dotnet restore "ValidationService.csproj" --source "https://api.nuget.org/v3/index.json" --source "https://nuget.pkg.github.com/trumpee/index.json" +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 FROM build AS publish From 318007cc18f1e79cd9eea24bda84250915e4d18f Mon Sep 17 00:00:00 2001 From: Bardin08 Date: Sat, 18 May 2024 02:11:28 +0300 Subject: [PATCH 2/2] Remove debug commands --- ValidationService/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ValidationService/Dockerfile b/ValidationService/Dockerfile index cf94b26..016e6da 100644 --- a/ValidationService/Dockerfile +++ b/ValidationService/Dockerfile @@ -9,7 +9,7 @@ COPY ./ValidationService/ ./ 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 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 FROM build AS publish