Skip to content

Commit

Permalink
Upgrade CSharp template
Browse files Browse the repository at this point in the history
Upgrades to .NET Core 3.1 and now the template can be used
on device on an RPi / ARM server.

Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
  • Loading branch information
alexellis committed Oct 19, 2020
1 parent 0655e57 commit 888f006
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions template/csharp/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM openfaas/classic-watchdog:0.18.18 as watchdog

FROM microsoft/dotnet:2.1-sdk as builder
FROM mcr.microsoft.com/dotnet/core/sdk:3.1 as builder

# Supress collection of data.
ENV DOTNET_CLI_TELEMETRY_OPTOUT 1
Expand All @@ -19,7 +19,7 @@ COPY . .

RUN dotnet publish -c release -o published

FROM microsoft/dotnet:2.1-runtime
FROM mcr.microsoft.com/dotnet/core/runtime:3.1

COPY --from=watchdog /fwatchdog /usr/bin/fwatchdog
RUN chmod +x /usr/bin/fwatchdog
Expand Down
2 changes: 1 addition & 1 deletion template/csharp/root.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
</ItemGroup>
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.0</TargetFramework>
<TargetFramework>netcoreapp3.1</TargetFramework>
</PropertyGroup>
<PropertyGroup>
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
Expand Down

0 comments on commit 888f006

Please sign in to comment.