This commit is contained in:
Elias Jansson
2025-03-03 12:29:46 +01:00
parent 4635724569
commit 4e1eb05141
23 changed files with 22 additions and 871 deletions

View File

@@ -0,0 +1,5 @@
{
"version": 1,
"isRoot": true,
"tools": {}
}

View File

@@ -8,6 +8,14 @@
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
</PropertyGroup>
<ItemGroup>
<Compile Remove="NewFolder\**" />
<Content Remove="NewFolder\**" />
<EmbeddedResource Remove="NewFolder\**" />
<None Remove="NewFolder\**" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="AngularJS.Core" Version="1.8.2" />
<PackageReference Include="HtmlAgilityPack" Version="1.11.67" />
@@ -21,9 +29,4 @@
<PackageReference Include="MySql.EntityFrameworkCore" Version="8.0.5" />
</ItemGroup>
<ItemGroup>
<Folder Include="NewFolder1\" />
<Folder Include="NewFolder\" />
</ItemGroup>
</Project>

View File

@@ -2,6 +2,8 @@
FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base
WORKDIR /app
RUN mkdir -p /app/build && chmod -R 777 /app/build
# Leave the ports exposed to allow Unraid to configure them
EXPOSE 80 443
@@ -10,12 +12,17 @@ FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
WORKDIR /src
# Copy the .csproj and restore dependencies
COPY Aberwyn.csproj ./
COPY Aberwyn/Aberwyn.csproj ./
RUN dotnet restore
#COPY Aberwyn/Aberwyn.csproj ./Aberwyn/
#WORKDIR /src/Aberwyn
#RUN dotnet restore
# Copy everything else and build the app
COPY . .
RUN dotnet build Aberwyn.csproj -c Release -o /app/build
RUN dotnet build Aberwyn.csproj -c Release -o /app/build/
# Publish the app to the /app/publish folder
FROM build AS publish