This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# escape=` | |
FROM mcr.microsoft.com/powershell:6.2.0-ubuntu-18.04 | |
# Set default directory to C:\Agent | |
WORKDIR /agent | |
# Set PowerShell as default shell | |
SHELL [ "pwsh", "-NoProfile", "-Command" ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# escape=` | |
FROM mcr.microsoft.com/windows/servercore:ltsc2019 | |
# Install .NET 4.8 | |
RUN curl -fSLo dotnet-framework-installer.exe https://download.visualstudio.microsoft.com/download/pr/7afca223-55d2-470a-8edc-6a1739ae3252/abd170b4b0ec15ad0222a809b761a036/ndp48-x86-x64-allos-enu.exe ` | |
&& .\dotnet-framework-installer.exe /q ` | |
&& del .\dotnet-framework-installer.exe ` | |
&& powershell Remove-Item -Force -Recurse ${Env:TEMP}\* |
NewerOlder