with:
context: .
file: ./Dockerfile
- platforms: linux/amd64,linux/arm/v7
+ platforms: linux/amd64,linux/arm/v7,linux/arm64
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.prep.outputs.tags }}
dotnet publish -c release -o /app -r "$NETCORE_PLATFORM" --no-restore ./src/Impostor.Server/Impostor.Server.csproj
# Final image.
-FROM mcr.microsoft.com/dotnet/core/runtime-deps:3.1
+FROM --platform=$TARGETPLATFORM mcr.microsoft.com/dotnet/core/runtime-deps:3.1
WORKDIR /app
COPY --from=build /app ./
EXPOSE 22023/udp