-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathDockerfile
22 lines (15 loc) · 827 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# escape=`
FROM mcr.microsoft.com/windows/servercore:2004
LABEL org.opencontainers.image.source https://github.com/rajyraman/docker-github-self-hosted-runner
LABEL org.opencontainers.image.documentation https://github.com/rajyraman/docker-github-self-hosted-runner/README.md
LABEL org.opencontainers.image.authors Natraj Yegnaraman
LABEL org.opencontainers.image.title Self Hosted GitHub Runner on Docker
LABEL org.opencontainers.image.description This image helps you to develop debug GitHub Workflow by running it in a self-hosted runner on Docker
ADD runner-setup.ps1 C:/runner-setup.ps1
WORKDIR /actions-runner
SHELL [ "powershell" ]
RUN "Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force; `
iwr -useb get.scoop.sh | iex; `
scoop install git"
ADD runner.ps1 C:/runner.ps1
CMD C:/runner.ps1