Skip to content

Commit

Permalink
Hardcode amd64 SDK image in Dockerfile for multi platform builds
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusWichelmann committed May 19, 2021
1 parent 9e3516e commit 51bfeab
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ WORKDIR /app
EXPOSE 80
EXPOSE 443

FROM mcr.microsoft.com/dotnet/sdk:5.0 AS publish
# Use hardcoded amd64 SDK image: https://github.com/dotnet/dotnet-docker/issues/1537#issuecomment-755351628
FROM mcr.microsoft.com/dotnet/sdk:5.0-buster-slim-amd64 AS publish
WORKDIR /src
COPY src/SolarEdgeExporter/SolarEdgeExporter.csproj SolarEdgeExporter/
WORKDIR /src/SolarEdgeExporter
Expand Down

0 comments on commit 51bfeab

Please sign in to comment.