From 3bd58c7e30c9a189660b4c8f5edd7b5544c87235 Mon Sep 17 00:00:00 2001 From: Alex Date: Sun, 31 Mar 2024 21:51:24 -0500 Subject: [PATCH] fix(build): platform in dockerfile --- src/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Dockerfile b/src/Dockerfile index e37e814..850729f 100644 --- a/src/Dockerfile +++ b/src/Dockerfile @@ -1,5 +1,5 @@ # Stage 1: Build -FROM mcr.microsoft.com/dotnet/sdk:8.0 as source +FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:8.0 as source ARG target="Release" RUN apt-get update && apt-get install unzip -y @@ -19,7 +19,7 @@ RUN dotnet publish -c $target -o obj/docker/publish RUN cp -r /src/obj/docker/publish /OpenIdConnectServerMock # Stage 2: Release -FROM mcr.microsoft.com/dotnet/aspnet:8.0 as release +FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/aspnet:8.0 as release ARG target="Release" RUN apt-get update && apt-get install curl -y && rm -rf /var/lib/apt/lists/*