From c9c377e1b61f4e22f3647ef8fcc9eb8945f14597 Mon Sep 17 00:00:00 2001 From: Cameron Cowen Date: Wed, 13 Jul 2022 23:27:40 +0100 Subject: [PATCH] Updated dockerfiles to have the final stage use the generic platform tag instead of amd64. Inline with 0dd7575 --- docker/Dockerfile | 2 +- docker/Dockerfile-elsa-dashboard | 2 +- docker/Dockerfile-elsa-dashboard-and-server | 2 +- docker/Dockerfile-elsa-server | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index e926a6fc6b..3cc856e8ca 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -18,7 +18,7 @@ RUN dotnet build "ElsaDashboard.Samples.AspNetCore.Monolith.csproj" -c Release - RUN dotnet publish "ElsaDashboard.Samples.AspNetCore.Monolith.csproj" -c Release -o /app/publish /p:UseAppHost=false --no-restore -f net6.0 # move binaries into smaller base image -FROM mcr.microsoft.com/dotnet/aspnet:6.0-bullseye-slim-amd64 AS base +FROM mcr.microsoft.com/dotnet/aspnet:6.0-bullseye-slim AS base WORKDIR /app COPY --from=build /app/publish ./ diff --git a/docker/Dockerfile-elsa-dashboard b/docker/Dockerfile-elsa-dashboard index 7041df6eb4..374b2727d6 100644 --- a/docker/Dockerfile-elsa-dashboard +++ b/docker/Dockerfile-elsa-dashboard @@ -30,7 +30,7 @@ RUN dotnet build "ElsaDashboard.Web.csproj" -c Release -o /app/build RUN dotnet publish "ElsaDashboard.Web.csproj" -c Release -o /app/publish /p:UseAppHost=false --no-restore -f net6.0 # move binaries into smaller base image -FROM mcr.microsoft.com/dotnet/aspnet:6.0-bullseye-slim-amd64 AS base +FROM mcr.microsoft.com/dotnet/aspnet:6.0-bullseye-slim AS base WORKDIR /app COPY --from=build /app/publish ./ diff --git a/docker/Dockerfile-elsa-dashboard-and-server b/docker/Dockerfile-elsa-dashboard-and-server index 93a58ae2fc..ab554fde75 100644 --- a/docker/Dockerfile-elsa-dashboard-and-server +++ b/docker/Dockerfile-elsa-dashboard-and-server @@ -27,7 +27,7 @@ RUN dotnet build "ElsaDashboard.Samples.AspNetCore.Monolith.csproj" -c Release - RUN dotnet publish "ElsaDashboard.Samples.AspNetCore.Monolith.csproj" -c Release -o /app/publish /p:UseAppHost=false --no-restore -f net6.0 # move binaries into smaller base image -FROM mcr.microsoft.com/dotnet/aspnet:6.0-bullseye-slim-amd64 AS base +FROM mcr.microsoft.com/dotnet/aspnet:6.0-bullseye-slim AS base WORKDIR /app COPY --from=build /app/publish ./ diff --git a/docker/Dockerfile-elsa-server b/docker/Dockerfile-elsa-server index 382078fe3e..0384410813 100644 --- a/docker/Dockerfile-elsa-server +++ b/docker/Dockerfile-elsa-server @@ -15,7 +15,7 @@ RUN dotnet build "Elsa.Samples.Server.Host.csproj" -c Release -o /app/build RUN dotnet publish "Elsa.Samples.Server.Host.csproj" -c Release -o /app/publish /p:UseAppHost=false --no-restore # move binaries into smaller base image -FROM mcr.microsoft.com/dotnet/aspnet:6.0-bullseye-slim-amd64 AS base +FROM mcr.microsoft.com/dotnet/aspnet:6.0-bullseye-slim AS base WORKDIR /app COPY --from=build /app/publish ./