From 9dfbe89e879e5da0633365ed55f1dd4c7735ed5d Mon Sep 17 00:00:00 2001 From: Glax Date: Tue, 17 Sep 2024 00:51:22 +0200 Subject: [PATCH] include --platform=$BUILDPLATFORM in Dockerfile --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index f4180cf..1ffcca0 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ # syntax=docker/dockerfile:1 ARG DOTNET=8.0 -FROM mcr.microsoft.com/dotnet/runtime:$DOTNET AS base +FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/runtime:$DOTNET AS base WORKDIR /publish ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium @@ -10,7 +10,7 @@ RUN apt-get update \ && apt-get autopurge -y \ && apt-get autoclean -y -FROM mcr.microsoft.com/dotnet/sdk:$DOTNET AS build-env +FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:$DOTNET AS build-env WORKDIR /src COPY Tranga.sln /src @@ -22,7 +22,7 @@ RUN dotnet restore /src/Tranga.sln COPY . /src/ RUN dotnet publish -c Release --property:OutputPath=/publish -maxcpucount:1 -FROM base AS runtime +FROM --platform=$BUILDPLATFORM base AS runtime EXPOSE 6531 ARG UNAME=tranga ARG UID=1000