Skip to content

Commit

Permalink
use mcr.microsoft.com/dotnet/core/runtime:3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
aleortega committed Jan 17, 2024
1 parent 2e3d502 commit 5a40f3c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/build-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:

jobs:
build:
runs-on: windows-2019
runs-on: windows-latest

steps:
- name: Checkout code
Expand All @@ -28,5 +28,4 @@ jobs:
- name: Execute test case | tmp
run: |
docker run -d -e HTTP_SERVER_PORT=8080 -e HTTP_SERVER_HOST=0.0.0.0 lods > container_id.txt
docker logs $(cat container_id.txt)
docker logs $(cat container_id.txt)
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ RUN dotnet publish -c Release -r win10-x64 -o ./publish --self-contained true
COPY DCL_PiXYZ/ ./

# bundle all apps
FROM mcr.microsoft.com/windows/servercore:ltsc2019
FROM mcr.microsoft.com/dotnet/core/runtime:3.1

# ADD https://nodejs.org/dist/v18.0.0/node-v18.0.0-win-x64.zip C:\\node.zip
# RUN powershell -Command \
Expand All @@ -75,9 +75,9 @@ 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
# # 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

Expand Down

0 comments on commit 5a40f3c

Please sign in to comment.