From 1a2bbf43b88c3064905340517db9646b89ee8e27 Mon Sep 17 00:00:00 2001 From: Tudor Stanciu Date: Sun, 23 Mar 2025 04:04:16 +0200 Subject: [PATCH] docker file ARM fix --- src/Tuitio/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Tuitio/Dockerfile b/src/Tuitio/Dockerfile index 39faa68..7655cf8 100644 --- a/src/Tuitio/Dockerfile +++ b/src/Tuitio/Dockerfile @@ -1,11 +1,11 @@ #See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging. -FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base +FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/aspnet:8.0 AS base WORKDIR /app EXPOSE 80 # This stage is used to build the service project -FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build +FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:8.0 AS build ARG BUILD_CONFIGURATION=Release WORKDIR /workspace COPY ["dependencies.props", "."]