Skip to content

Commit 2d16704

Browse files
author
Joseph
committed
made further changes to base image
Signed-off-by: Joseph <[email protected]>
1 parent 2c8b9a3 commit 2d16704

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

windows-arc-runner/Dockerfile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,15 @@ RUN Invoke-WebRequest -Uri "https://github.com/actions/runner/releases/download/
2121
[System.IO.Compression.ZipFile]::ExtractToDirectory('actions-runner.zip', $PWD); `
2222
Remove-Item -Force actions-runner.zip
2323

24-
################################################################################
25-
# Install Chocolatey + common tools
26-
################################################################################
24+
# Install Chocolatey and tools (without refreshenv)
2725
RUN Set-ExecutionPolicy Bypass -Scope Process -Force; `
2826
[Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor 3072; `
2927
Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1')); `
3028
choco feature enable -n allowGlobalConfirmation; `
31-
choco install -y git.install gh powershell-core azure-cli docker-cli docker-compose cmake python --installargs '"ADD_CMAKE_TO_PATH=System"'; `
32-
refreshenv
29+
choco install -y git.install gh powershell-core azure-cli docker-cli docker-compose cmake python --installargs '"ADD_CMAKE_TO_PATH=System"'
3330

31+
# Manually append Git and Python to PATH if needed
32+
RUN setx /M PATH "$($Env:PATH);C:\Program Files\Git\bin;C:\Python313"
3433
# Add Git Bash to PATH
3534
RUN setx /M PATH "$($Env:PATH);C:\Program Files\Git\bin"
3635

0 commit comments

Comments
 (0)