Skip to content

Commit

Permalink
Try to build a project via sln (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bardin08 authored May 17, 2024
2 parents f9fcefa + dea28b8 commit 1585f7a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ValidationService/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1585f7a

Please sign in to comment.