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

@@ -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