diff --git a/TideFin.Server.DB/TideFin.Server.DB.csproj b/TideFin.Server.DB/TideFin.Server.DB.csproj new file mode 100644 index 0000000..1c39a9a --- /dev/null +++ b/TideFin.Server.DB/TideFin.Server.DB.csproj @@ -0,0 +1,14 @@ + + + + net9.0 + enable + enable + + + + + + + + diff --git a/TideFin.Server.sln b/TideFin.Server.sln index 85f959f..2cb83fc 100644 --- a/TideFin.Server.sln +++ b/TideFin.Server.sln @@ -1,10 +1,12 @@  Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 17 -VisualStudioVersion = 17.13.35828.75 d17.13 +VisualStudioVersion = 17.13.35828.75 MinimumVisualStudioVersion = 10.0.40219.1 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TideFin.Server", "TideFin.Server\TideFin.Server.csproj", "{A490AE24-F8ED-46CB-9E86-3F22468485E9}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TideFin.Server.DB", "TideFin.Server.DB\TideFin.Server.DB.csproj", "{1E198C8A-93EB-47F0-9D59-E14A0AF3260A}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -15,6 +17,10 @@ Global {A490AE24-F8ED-46CB-9E86-3F22468485E9}.Debug|Any CPU.Build.0 = Debug|Any CPU {A490AE24-F8ED-46CB-9E86-3F22468485E9}.Release|Any CPU.ActiveCfg = Release|Any CPU {A490AE24-F8ED-46CB-9E86-3F22468485E9}.Release|Any CPU.Build.0 = Release|Any CPU + {1E198C8A-93EB-47F0-9D59-E14A0AF3260A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {1E198C8A-93EB-47F0-9D59-E14A0AF3260A}.Debug|Any CPU.Build.0 = Debug|Any CPU + {1E198C8A-93EB-47F0-9D59-E14A0AF3260A}.Release|Any CPU.ActiveCfg = Release|Any CPU + {1E198C8A-93EB-47F0-9D59-E14A0AF3260A}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/TideFin.Server/Dockerfile b/TideFin.Server/Dockerfile index f54caf5..662f7f7 100644 --- a/TideFin.Server/Dockerfile +++ b/TideFin.Server/Dockerfile @@ -4,7 +4,7 @@ COPY . ./ # Restore dependencies for your application RUN dotnet restore # Build your application -RUN dotnet publish TideFin.Server --no-restore --self-contained false -c Release -o out /p:UseAppHost=false +RUN dotnet publish TideFin.Server.csproj --no-restore --self-contained false -c Release -o out /p:UseAppHost=false FROM git.claeyscloud.com/david/net-base:9.0.11-alpine-22 @@ -12,6 +12,8 @@ WORKDIR /App # copy build files from build-stage COPY --from=build-env /App/out . # change ownership of files to the app user -RUN chown -R app:app /App/ +RUN chown -R app:app /App/* # entrypoint for image -ENTRYPOINT ["dotnet", "TideFin.Server.dll"] \ No newline at end of file +ENTRYPOINT ["dotnet", "TideFin.Server.dll"] +EXPOSE 80 +EXPOSE 443 \ No newline at end of file diff --git a/TideFin.Server/Program.cs b/TideFin.Server/Program.cs index 48863a6..1660037 100644 --- a/TideFin.Server/Program.cs +++ b/TideFin.Server/Program.cs @@ -7,14 +7,13 @@ builder.Services.AddControllers(); builder.Services.AddEndpointsApiExplorer(); builder.Services.AddSwaggerGen(); +builder.Logging.ClearProviders(); +builder.Logging.AddConsole(); + var app = builder.Build(); -// Configure the HTTP request pipeline. -if (app.Environment.IsDevelopment()) -{ - app.UseSwagger(); - app.UseSwaggerUI(); -} +app.UseSwagger(); +app.UseSwaggerUI(); app.UseHttpsRedirection(); diff --git a/TideFin.Server/TideFin.Server.csproj b/TideFin.Server/TideFin.Server.csproj index a08e4ec..3a20d86 100644 --- a/TideFin.Server/TideFin.Server.csproj +++ b/TideFin.Server/TideFin.Server.csproj @@ -2,6 +2,9 @@ net9.0 + 0.0.1 + 0.0.1 + 0.0.1 enable enable c40713b7-7556-4b39-b57c-0abf905d7931