From 7b78ef6446e82a0126da998ada6eb8607d018498 Mon Sep 17 00:00:00 2001 From: Darren Reid Date: Thu, 23 Nov 2023 11:27:11 +1100 Subject: [PATCH] Update Dockerfile --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0139816..2ef78d6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM mcr.microsoft.com/dotnet/sdk:6.0-focal AS build +FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build WORKDIR /app RUN curl -sL https://deb.nodesource.com/setup_16.x | bash - \ @@ -18,7 +18,7 @@ RUN npm run ui:build WORKDIR /app/MyApp RUN dotnet publish -c release /p:DEPLOY_API=${DEPLOY_API} /p:DEPLOY_CDN=${DEPLOY_CDN} /p:APP_TASKS=prerender -o /out --no-restore -FROM mcr.microsoft.com/dotnet/aspnet:6.0-focal AS runtime +FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS runtime WORKDIR /app COPY --from=build /out . ENTRYPOINT ["dotnet", "MyApp.dll"]