* Update to .net 8 preview 1 * Update npoco to 5.7.0 * Update pipeline to use .net 8 * Revert "Update npoco to 5.7.0" This reverts commit f7795afa77a41ef2719f639405f73d9c21e4b12e. * Fix tests and updated OpenApi.json * use dotnet 8 in linux container * Updated templates and docker image to dotnet 8 * Bugfix * R Updated docker images to 8.0 preview 1 * linux docker images updated * Force use c# 11, in hope of the acceptance tests will pass * Do not use C# 8 :) * Update to preview 2 * CompatibilitySuppressions * updated templates * Disable package validation * Update to .net8 preview 4 * change EnableStrictModeForCompatibleFrameworksInPackage to false * Package validation * Added CompatibilitySuppressions.xml * Fix up IP networks * Updated to preview 5 * Update docker images * Post merge fixes * Try to update dotnet version of codeql * Delete empty suppression files * Remove dependency * Cleanup --------- Co-authored-by: Elitsa <elm@umbraco.dk>
52 lines
1.7 KiB
Docker
52 lines
1.7 KiB
Docker
############################################
|
|
## Build
|
|
############################################
|
|
|
|
FROM mcr.microsoft.com/dotnet/nightly/sdk:8.0.100-preview.6-jammy AS build
|
|
|
|
COPY nuget.config .
|
|
|
|
COPY nuget.config .
|
|
|
|
WORKDIR /nupkg
|
|
COPY nupkg .
|
|
|
|
WORKDIR /build
|
|
RUN dotnet new --install /nupkg/Umbraco.Templates.*.nupkg
|
|
RUN dotnet new umbraco --name Playwright --no-restore --output .
|
|
RUN dotnet restore --configfile /nuget.config
|
|
RUN dotnet build --configuration Release --no-restore
|
|
RUN dotnet publish --configuration Release --no-build --output /dist
|
|
|
|
############################################
|
|
## Run
|
|
############################################
|
|
|
|
FROM mcr.microsoft.com/dotnet/nightly/aspnet:8.0.0-preview.6-jammy AS run
|
|
|
|
WORKDIR /app
|
|
COPY --from=build dist .
|
|
|
|
# Enable console logging in Release mode
|
|
ENV Serilog__WriteTo__0__Name=Async
|
|
ENV Serilog__WriteTo__0__Args__configure__0__Name=Console
|
|
|
|
# Set unattended install settings
|
|
ENV ConnectionStrings__umbracoDbDSN_ProviderName="Microsoft.Data.Sqlite"
|
|
ENV ConnectionStrings__umbracoDbDSN="Data Source=|DataDirectory|/Umbraco.sqlite.db;Cache=Shared;Foreign Keys=True;Pooling=True"
|
|
ENV Umbraco__CMS__Unattended__InstallUnattended="true"
|
|
ENV Umbraco__CMS__Unattended__UnattendedUserName="Playwright Test"
|
|
ENV Umbraco__CMS__Unattended__UnattendedUserEmail="playwright@umbraco.com"
|
|
ENV Umbraco__CMS__Unattended__UnattendedUserPassword="UmbracoAcceptance123!"
|
|
|
|
# Custom Umbraco settings
|
|
ENV Umbraco__CMS__Global__VersionCheckPeriod="0"
|
|
ENV Umbraco__CMS__Global__UseHttps="true"
|
|
ENV Umbraco__CMS__HealthChecks__Notification__Enabled="false"
|
|
ENV Umbraco__CMS__KeepAlive__DisableKeepAliveTask="true"
|
|
|
|
# Set application URL
|
|
ENV ASPNETCORE_URLS="http://0.0.0.0:5000;https://0.0.0.0:5001"
|
|
|
|
CMD dotnet Playwright.dll
|