Skip to content

Commit 5a89f4e

Browse files
committed
refactor: download vcredist and dotnet10 at entrypoint
1 parent ade2727 commit 5a89f4e

2 files changed

Lines changed: 8 additions & 7 deletions

File tree

windows/Dockerfile

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,7 @@
11
FROM mcr.microsoft.com/windows/servercore:ltsc2022@sha256:c7c591fe3a010bc641906723ad583ffe2fc14b472de6e6453ea26eaa3689d16e
22

3-
ENV DOTNET_VERSION=10.0.5
43
ENV LIP_VERSION=0.34.4
54

6-
ADD https://aka.ms/vc14/vc_redist.x64.exe vcredist.exe
7-
ADD https://builds.dotnet.microsoft.com/dotnet/Runtime/${DOTNET_VERSION}/dotnet-runtime-${DOTNET_VERSION}-win-x64.exe dotnet-runtime.exe
8-
9-
RUN vcredist.exe /install /quiet /norestart && del vcredist.exe
10-
RUN dotnet-runtime.exe /install /quiet /norestart && del dotnet-runtime.exe
11-
125
ADD https://github.com/futrime/lip/releases/download/v${LIP_VERSION}/lip-${LIP_VERSION}-win-x64.zip lip.zip
136

147
RUN mkdir "\Program Files\lip" \

windows/entrypoint.cmd

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@ if not "%EULA%"=="TRUE" (
1010
)
1111

1212
if not exist "bedrock_server_mod.exe" (
13+
powershell -Command "Invoke-WebRequest -Uri https://builds.dotnet.microsoft.com/dotnet/Runtime/10.0.5/dotnet-runtime-10.0.5-win-x64.exe -OutFile dotnet-runtime.exe
14+
dotnet-runtime.exe /install /quiet /norestart
15+
del dotnet-runtime.exe
16+
17+
powershell -Command "Invoke-WebRequest -Uri https://aka.ms/vc14/vc_redist.x64.exe -OutFile vc_redist.x64.exe
18+
vc_redist.x64.exe /install /quiet /norestart
19+
del vc_redist.x64.exe
20+
1321
if not "%GITHUB_MIRROR_URL%"=="" (
1422
lip.exe config set github_proxy %GITHUB_MIRROR_URL%
1523
)

0 commit comments

Comments
 (0)