From 764d8a62f672db4f5dc04755542eaa356cbee520 Mon Sep 17 00:00:00 2001
From: Ricardo Carneiro <71648276+ricarneiro@users.noreply.github.com>
Date: Fri, 25 Jul 2025 19:37:03 -0300
Subject: [PATCH] fix: build multiplataforma
---
Dockerfile.release | 5 ++---
src/BCards.Web/BCards.Web.csproj | 1 +
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Dockerfile.release b/Dockerfile.release
index 19c4405..b3b5662 100644
--- a/Dockerfile.release
+++ b/Dockerfile.release
@@ -39,10 +39,9 @@ COPY ["src/BCards.Web/BCards.Web.csproj", "src/BCards.Web/"]
RUN case "$TARGETPLATFORM" in \
"linux/amd64") RID="linux-x64" ;; \
"linux/arm64") RID="linux-arm64" ;; \
- *) echo "Unsupported platform: $TARGETPLATFORM" && exit 1 ;; \
esac && \
- echo "🏗️ Restoring for platform: $TARGETPLATFORM -> RID: $RID" && \
- dotnet restore "src/BCards.Web/BCards.Web.csproj" --runtime $RID
+ echo "🔧 Restoring for RID: $RID" && \
+ dotnet restore "BCards.Web.csproj" --runtime $RID
# Copy source code
COPY . .
diff --git a/src/BCards.Web/BCards.Web.csproj b/src/BCards.Web/BCards.Web.csproj
index 30f20a7..33c6766 100644
--- a/src/BCards.Web/BCards.Web.csproj
+++ b/src/BCards.Web/BCards.Web.csproj
@@ -5,6 +5,7 @@
enable
enable
false
+ linux-x64;linux-arm64