i8beef / HomeAutio.Mqtt.GoogleHome

MIT License
215 stars 29 forks source link

arm32 Dockerfile uses .NET Runtime instead of ASP.NET #134

Closed profiluefter closed 2 years ago

profiluefter commented 2 years ago

In src/Dockerfile.arm32 the image mcr.microsoft.com/dotnet/runtime:5.0-alpine-arm32v7 (runtime) is used while in the other Dockerfiles mcr.microsoft.com/dotnet/aspnet:5.0-alpine-arm64v8 (aspnet; or other tag) is used. I've checked and the tag 5.0-alpine-arm32v7 also exists for the aspnet image so simply changing runtime to aspnet that should fix it.

The result of this is the following message when trying to run this image on my Raspberry Pi 3b+:

It was not possible to find any compatible framework version
The framework 'Microsoft.AspNetCore.App', version '5.0.0' was not found.
  - No frameworks were found.

You can resolve the problem by installing the specified framework and/or SDK.

The specified framework can be found at:
  - https://aka.ms/dotnet-core-applaunch?framework=Microsoft.AspNetCore.App&framework_version=5.0.0&arch=arm&rid=alpine.3.14-arm
i8beef commented 2 years ago

Ah, yes that was a copy and paste mistake when I was moving over to the Github build systems. Pushing a fix now. Look for 2.0.0.168

profiluefter commented 2 years ago

It works now. Thanks for the quick fix!