From aba85b32ec7098733129f169ed27c6d2feddccb6 Mon Sep 17 00:00:00 2001 From: Vitalii Mikhailov Date: Wed, 21 Feb 2024 17:30:20 +0200 Subject: [PATCH] Fix --- src/BUTR.Site.NexusMods.Server/Dockerfile | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/BUTR.Site.NexusMods.Server/Dockerfile b/src/BUTR.Site.NexusMods.Server/Dockerfile index aecbf707..87c8bef1 100644 --- a/src/BUTR.Site.NexusMods.Server/Dockerfile +++ b/src/BUTR.Site.NexusMods.Server/Dockerfile @@ -13,11 +13,6 @@ COPY ["src/BUTR.Site.NexusMods.Server.ValueObjects.TVO/BUTR.Site.NexusMods.Serve COPY ["src/BUTR.Site.NexusMods.DependencyInjection/BUTR.Site.NexusMods.DependencyInjection.csproj", "src/BUTR.Site.NexusMods.DependencyInjection/"] COPY ["src/nuget.config", "src/"] -RUN if [ "$TARGETARCH" = "amd64" ]; then \ - dotnet restore "src/BUTR.Site.NexusMods.Server/BUTR.Site.NexusMods.Server.csproj" -r linux-x64; \ - else \ - dotnet restore "src/BUTR.Site.NexusMods.Server/BUTR.Site.NexusMods.Server.csproj" -r linux-arm64; \ - fi #RUN dotnet restore "src/BUTR.Site.NexusMods.Server/BUTR.Site.NexusMods.Server.csproj" -r linux-x64 -p:PublishReadyToRun=true; COPY ["src/BUTR.Site.NexusMods.Server/", "src/BUTR.Site.NexusMods.Server/"] @@ -35,11 +30,7 @@ FROM restore AS publish ARG TARGETARCH WORKDIR /build -RUN if [ "$TARGETARCH" = "amd64" ]; then \ - dotnet publish "src/BUTR.Site.NexusMods.Server/BUTR.Site.NexusMods.Server.csproj" --no-restore -c Release -r linux-x64 -o /app/publish; \ - else \ - dotnet publish "src/BUTR.Site.NexusMods.Server/BUTR.Site.NexusMods.Server.csproj" --no-restore -c Release -r linux-arm64 -o /app/publish; \ - fi +RUN dotnet publish "src/BUTR.Site.NexusMods.Server/BUTR.Site.NexusMods.Server.csproj" --no-restore -c Release -o /app/publish; \ #RUN dotnet publish "src/BUTR.Site.NexusMods.Server/BUTR.Site.NexusMods.Server.csproj" --no-restore -c Release -r linux-x64 -o /app/publish -p:PublishReadyToRun=true;