Skip to content

Commit

Permalink
restore old docker image and try to install dotnet runtime 3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
aleortega committed Jan 17, 2024
1 parent 21b04d5 commit 2e3d502
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2e3d502

Please sign in to comment.