From 2e3d502b54a3a7faffd3279ac88cac7fb192a96f Mon Sep 17 00:00:00 2001 From: Alejo Thomas Ortega Date: Wed, 17 Jan 2024 16:19:23 -0300 Subject: [PATCH] restore old docker image and try to install dotnet runtime 3.1 --- Dockerfile | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 780b6ae5..e5e0bf8c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -64,15 +64,21 @@ RUN dotnet publish -c Release -r win10-x64 -o ./publish --self-contained true COPY DCL_PiXYZ/ ./ # bundle all apps -FROM https://mcr.microsoft.com/dotnet/core/aspnet:3.1 +FROM mcr.microsoft.com/windows/servercore:ltsc2019 -ADD https://nodejs.org/dist/v18.0.0/node-v18.0.0-win-x64.zip C:\\node.zip -RUN powershell -Command \ - Expand-Archive -Path C:\\node.zip -DestinationPath C:\\Node; \ - Remove-Item -Force C:\\node.zip +# ADD https://nodejs.org/dist/v18.0.0/node-v18.0.0-win-x64.zip C:\\node.zip +# RUN powershell -Command \ +# Expand-Archive -Path C:\\node.zip -DestinationPath C:\\Node; \ +# Remove-Item -Force C:\\node.zip +# copy node installation from base image +COPY --from=base /Node /Node RUN setx /M PATH "%PATH%;C:\Node\node-v18.0.0-win-x64" +# Install dotnet runtime +ADD https://dotnet.microsoft.com/en-us/download/dotnet/thank-you/runtime-aspnetcore-3.1.32-windows-x64-installer C:\\dotnet-runtime.exe +RUN C:\\dotnet-runtime.exe /quiet /install + WORKDIR /app RUN dir