@@ -14,7 +14,6 @@ RUN apt update && \
1414# Build stage image
1515FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
1616ARG BUILD_CONFIGURATION=Release
17- ARG TARGETARCH=x64
1817ENV BUILD_CONFIGURATION=${BUILD_CONFIGURATION}
1918WORKDIR /src
2019
@@ -24,17 +23,17 @@ COPY ["src/KeeperData.Infrastructure/KeeperData.Infrastructure.csproj", "KeeperD
2423COPY ["src/KeeperData.Application/KeeperData.Application.csproj" , "KeeperData.Application/" ]
2524COPY ["src/KeeperData.Core/KeeperData.Core.csproj" , "KeeperData.Core/" ]
2625
27- RUN dotnet restore "KeeperData.Bridge/KeeperData.Bridge.csproj" -r linux-${TARGETARCH} -v n
28- RUN dotnet restore "KeeperData.Bridge.Worker/KeeperData.Bridge.Worker.csproj" -r linux-${TARGETARCH} -v n
29- RUN dotnet restore "KeeperData.Infrastructure/KeeperData.Infrastructure.csproj" -r linux-${TARGETARCH} -v n
30- RUN dotnet restore "KeeperData.Application/KeeperData.Application.csproj" -r linux-${TARGETARCH} -v n
31- RUN dotnet restore "KeeperData.Core/KeeperData.Core.csproj" -r linux-${TARGETARCH} -v n
26+ RUN dotnet restore "KeeperData.Bridge/KeeperData.Bridge.csproj" -r linux-x64 -v n
27+ RUN dotnet restore "KeeperData.Bridge.Worker/KeeperData.Bridge.Worker.csproj" -r linux-x64 -v n
28+ RUN dotnet restore "KeeperData.Infrastructure/KeeperData.Infrastructure.csproj" -r linux-x64 -v n
29+ RUN dotnet restore "KeeperData.Application/KeeperData.Application.csproj" -r linux-x64 -v n
30+ RUN dotnet restore "KeeperData.Core/KeeperData.Core.csproj" -r linux-x64 -v n
3231
3332COPY ["src/" , "." ]
3433
3534FROM build AS publish
3635WORKDIR "/src/KeeperData.Bridge"
37- RUN dotnet publish "KeeperData.Bridge.csproj" -v n -c ${BUILD_CONFIGURATION} -o /app/publish -r linux-${TARGETARCH} --no-restore /p:UseAppHost=false
36+ RUN dotnet publish "KeeperData.Bridge.csproj" -v n -c ${BUILD_CONFIGURATION} -o /app/publish -r linux-x64 --no-restore /p:UseAppHost=false
3837
3938ENV ASPNETCORE_FORWARDEDHEADERS_ENABLED=true
4039
0 commit comments