.
This commit is contained in:
@@ -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