Build .NET Core apps for Raspberry Pi with Docker

preview_player
Показать описание
Рекомендации по теме
Комментарии
Автор

Nicely explained, thanks for sharing knowledge!

basemshebl
Автор

Really well explained, thanks for your help! Kinda what I needed. I wonder if it would also be able with a .net core Application. Like a desktop application for the raspbian OS. Because I have written a GUI, like a dashboard, in c# as .net core app and would like to display it on the raspberry pi.. but actually have no solution how ^^

guccisavedmylife
Автор

Hi im just learning about this stuff. Why use Docker and not just publish the app as self-contained ?

unskeptable
Автор

hi can you do the updated version of this video?? because im trying to do it following your instructions and some of the command in the docker file is not working

aimanaliyas
Автор

Hi Alex,

Great article. Thanks for sharing. I have followed the exact steps in the article but unfortunately getting following error.

Step 5/12 : COPY pi-sharp pi-sharp
COPY failed: stat no such file or directory

Did I miss anythig ?

Regards,
John

johnmay
Автор

Finally able to fixed the issue. Something is wrong with docker file.
Replaced with following,

FROM microsoft/dotnet:2.0-sdk AS build-env
WORKDIR /app

# copy csproj and restore as distinct layers
COPY *.csproj ./
RUN dotnet restore

# copy everything else and build
COPY . ./
RUN dotnet publish -c Release -r linux-arm -o out

# build runtime image
FROM
WORKDIR /app
COPY --from=build-env /app/out ./

CMD ["dotnet", "pi-sharp.dll"]

johnmay
visit shbcf.ru