Skip to content

Commit

Permalink
Add --platform to CoreAPI/Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
lamkhai committed Jun 16, 2024
1 parent bf336a0 commit fa8f2dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CoreAPI/CoreAPI/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ USER 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 BUILD_CONFIGURATION=Release
WORKDIR /src
COPY ["CoreAPI.csproj", "."]
Expand Down

0 comments on commit fa8f2dd

Please sign in to comment.