diff --git a/sources/MadWorldNL.HomeFriend.Server.Hub/Dockerfile b/sources/MadWorldNL.HomeFriend.Server.Hub/Dockerfile index 16269ec..6b2f5da 100644 --- a/sources/MadWorldNL.HomeFriend.Server.Hub/Dockerfile +++ b/sources/MadWorldNL.HomeFriend.Server.Hub/Dockerfile @@ -1,10 +1,12 @@ -FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base +FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/aspnet:8.0 AS base +ARG BUILDPLATFORM USER $APP_UID WORKDIR /app EXPOSE 8080 EXPOSE 8081 -FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build +FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:8.0 AS build +ARG BUILDPLATFORM ARG BUILD_CONFIGURATION=Release WORKDIR /src COPY ["Directory.Build.props", "/"]