.
This commit is contained in:
5
Aberwyn/.config/dotnet-tools.json
Normal file
5
Aberwyn/.config/dotnet-tools.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"version": 1,
|
||||
"isRoot": true,
|
||||
"tools": {}
|
||||
}
|
||||
@@ -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>
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user