wip - experimenting with Docker file

Signed-off-by: Carl Sargunar <carl@sargunar.com>
This commit is contained in:
Carl Sargunar
2022-06-01 22:25:47 +01:00
parent 4b0685f359
commit b8cbf8b999
2 changed files with 27 additions and 2 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 "umbraco.csproj" -c Release -o /app/build
FROM build AS publish
RUN dotnet publish "umbraco.csproj" -c Release -o /app/publish
FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT ["dotnet", "umbraco.dll"]