clean start

Signed-off-by: Carl Sargunar <carl@sargunar.com>
This commit is contained in:
Carl Sargunar
2022-06-02 00:32:35 +01:00
parent b8cbf8b999
commit 27be926117
49 changed files with 22 additions and 15 deletions

View File

@@ -0,0 +1,17 @@
FROM mcr.microsoft.com/dotnet/aspnet:6.0 as base
WORKDIR /app
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
COPY . /src
WORKDIR /src
RUN ls
RUN dotnet build "umbracocms.csproj" -c Release -o /app/build
FROM build AS publish
RUN dotnet publish "umbracocms.csproj" -c Release -o /app/publish
FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT ["dotnet", "umbracocms.dll"]