Skip to content

Commit

Permalink
fix(build): platform in dockerfile (#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
AleF83 authored Apr 1, 2024
1 parent f338146 commit c4938a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Stage 1: Build
FROM mcr.microsoft.com/dotnet/sdk:8.0 as source
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:8.0 as source
ARG target="Release"

RUN apt-get update && apt-get install unzip -y
Expand All @@ -19,7 +19,7 @@ RUN dotnet publish -c $target -o obj/docker/publish
RUN cp -r /src/obj/docker/publish /OpenIdConnectServerMock

# Stage 2: Release
FROM mcr.microsoft.com/dotnet/aspnet:8.0 as release
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/aspnet:8.0 as release
ARG target="Release"

RUN apt-get update && apt-get install curl -y && rm -rf /var/lib/apt/lists/*
Expand Down

0 comments on commit c4938a1

Please sign in to comment.