diff --git a/Dockerfile b/Dockerfile index 4a5088965..0626f3b60 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build-env +FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:8.0 AS build-env WORKDIR /app ARG COMMIT ARG TARGETPLATFORM diff --git a/Dockerfile.ACC b/Dockerfile.ACC index af6144b76..8e9f84ccf 100644 --- a/Dockerfile.ACC +++ b/Dockerfile.ACC @@ -1,5 +1,5 @@ # Use the SDK image to build the app -FROM mcr.microsoft.com/dotnet/sdk:8.0-jammy AS build-env +FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:8.0 AS build-env WORKDIR /app ARG COMMIT ARG TARGETPLATFORM