Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions frameworks/FSharp/oxpecker/oxpecker.dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build
WORKDIR /app
COPY src/App .
RUN dotnet publish -c Release -o out

FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS runtime
FROM mcr.microsoft.com/dotnet/aspnet:9.0 AS runtime

ENV DOTNET_GCDynamicAdaptationMode=0
ENV DOTNET_ReadyToRun 0
ENV DOTNET_HillClimbing_Disable=1
ENV ASPNETCORE_hostBuilder__reloadConfigOnChange false

ENV URLS http://+:8080
Expand Down
4 changes: 2 additions & 2 deletions frameworks/FSharp/oxpecker/src/App/App.fsproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net9.0</TargetFramework>
<EnableDefaultContentItems>false</EnableDefaultContentItems>
</PropertyGroup>

Expand All @@ -14,7 +14,7 @@

<ItemGroup>
<PackageReference Update="FSharp.Core" Version="9.0.100" />
<PackageReference Include="Oxpecker" Version="1.0.0" />
<PackageReference Include="Oxpecker" Version="1.1.1" />
<PackageReference Include="Oxpecker.ViewEngine" Version="1.0.0" />
<PackageReference Include="Npgsql" Version="9.0.1" />
<PackageReference Include="SpanJson" Version="4.2.1" />
Expand Down
2 changes: 1 addition & 1 deletion frameworks/FSharp/oxpecker/src/App/Db.fs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ module Db =

let loadMultipleRows (count: int) =
task {
use db = new NpgsqlConnection(MultiplexedConnectionString)
use db = new NpgsqlConnection(ConnectionString)
do! db.OpenAsync()
return! readMultipleRows count db
}
Expand Down
Loading