Skip to content

Commit

Permalink
(#85) Build: migrate to .NET 8
Browse files Browse the repository at this point in the history
  • Loading branch information
ForNeVeR committed Dec 17, 2023
1 parent 134a510 commit c0270fa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Codingteam.Site/Codingteam.Site.fsproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<Version>1.1.0</Version>
</PropertyGroup>

Expand All @@ -24,6 +24,6 @@
<Compile Include="Program.fs" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation" Version="3.1.6" />
<PackageReference Include="Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation" Version="8.0.0" />
</ItemGroup>
</Project>
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM mcr.microsoft.com/dotnet/core/sdk:3.1 AS build-env
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build-env

WORKDIR /app

Expand All @@ -9,7 +9,7 @@ COPY Codingteam.Site ./Codingteam.Site/
RUN dotnet build --no-restore --configuration Release Codingteam.Site
RUN dotnet publish --no-build --configuration Release --output publish Codingteam.Site

FROM mcr.microsoft.com/dotnet/core/aspnet:3.1
FROM mcr.microsoft.com/dotnet/aspnet:8.0
WORKDIR /app

COPY --from=build-env /app/publish .
Expand Down

0 comments on commit c0270fa

Please sign in to comment.