-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathDockerfile
More file actions
21 lines (16 loc) · 789 Bytes
/
Dockerfile
File metadata and controls
21 lines (16 loc) · 789 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# escape=`
ARG BASE
FROM mcr.microsoft.com/windows/servercore:$BASE
ENV VERSION 2.310.2
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
USER ContainerAdministrator
RUN iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')); `
choco install -y docker-cli; `
choco install -y git ; `
choco install -y jq;
WORKDIR c:/actions-runner
RUN Invoke-WebRequest -Uri \"https://github.com/actions/runner/releases/download/v$env:VERSION/actions-runner-win-x64-$env:VERSION.zip\" -OutFile actions-runner.zip -UseBasicParsing; `
Expand-Archive actions-runner.zip -DestinationPath .; `
Remove-Item actions-runner.zip;
COPY cmd.ps1 .
CMD ["powershell", "-Command", "./cmd.ps1"]