Skip to content

Commit

Permalink
Updated dockerfiles to have the final stage use the generic platform …
Browse files Browse the repository at this point in the history
…tag instead of amd64. Inline with 0dd7575
  • Loading branch information
milkyware authored and mohdali committed Jul 15, 2022
1 parent a6df539 commit c9c377e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 ./

Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile-elsa-dashboard
Original file line number Diff line number Diff line change
Expand Up @@ -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 ./

Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile-elsa-dashboard-and-server
Original file line number Diff line number Diff line change
Expand Up @@ -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 ./

Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile-elsa-server
Original file line number Diff line number Diff line change
Expand Up @@ -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 ./

Expand Down

0 comments on commit c9c377e

Please sign in to comment.