31 lines
1.1 KiB
XML
31 lines
1.1 KiB
XML
<Project Sdk="Microsoft.NET.Sdk.Web">
|
|
|
|
<ItemGroup>
|
|
<ProjectReference Include="..\AnimeAnnouncer\AnimeAnnouncer.csproj" />
|
|
</ItemGroup>
|
|
|
|
<PropertyGroup>
|
|
<TargetFramework>net8.0</TargetFramework>
|
|
<Nullable>enable</Nullable>
|
|
<ImplicitUsings>enable</ImplicitUsings>
|
|
</PropertyGroup>
|
|
|
|
<!-- SDK container publishing (dotnet publish -t:PublishContainer). The Web SDK
|
|
includes Microsoft.NET.Build.Containers, so no Dockerfile is needed; the
|
|
base image is inferred from TargetFramework (aspnet:8.0). -->
|
|
<PropertyGroup Label="Container">
|
|
<ContainerRepository>animeannouncer-web</ContainerRepository>
|
|
<!-- Add a version alongside it at publish time:
|
|
dotnet publish ... -p:ContainerImageTags='"1.1.0;latest"' -->
|
|
<ContainerImageTags>latest</ContainerImageTags>
|
|
<!-- The aspnet base image ships a non-root 'app' user; 8080 is unprivileged. -->
|
|
<ContainerUser>app</ContainerUser>
|
|
</PropertyGroup>
|
|
|
|
<ItemGroup>
|
|
<!-- Matches ASPNETCORE_HTTP_PORTS, which the aspnet:8.0 image defaults to 8080. -->
|
|
<ContainerPort Include="8080" Type="tcp" />
|
|
</ItemGroup>
|
|
|
|
</Project>
|