first commit
This commit is contained in:
commit
a8557e9cdb
4 changed files with 111 additions and 0 deletions
26
Dockerfile
Normal file
26
Dockerfile
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
FROM mcr.microsoft.com/windows/servercore:ltsc2022
|
||||
|
||||
WORKDIR C:/app
|
||||
|
||||
RUN mkdir C:\data
|
||||
RUN mkdir C:\temp
|
||||
|
||||
COPY gitea-runner.ps1 C:/app/gitea-runner.ps1
|
||||
ADD https://dl.gitea.com/act_runner/0.2.13/act_runner-0.2.13-windows-amd64.exe C:/act_runner.exe
|
||||
|
||||
SHELL ["powershell", "-NoProfile", "-Command"]
|
||||
RUN Set-ExecutionPolicy Bypass -Scope Process -Force; \
|
||||
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; \
|
||||
Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1')); \
|
||||
choco install git -y; \
|
||||
choco install nodejs --version=20.10.0 -y;
|
||||
|
||||
SHELL ["cmd", "/S", "/C"]
|
||||
|
||||
# Default environment variables
|
||||
ENV RUNNER_STATE_FILE=".runner"
|
||||
ENV GITEA_MAX_REG_ATTEMPTS=10
|
||||
|
||||
VOLUME ["C:/data"]
|
||||
|
||||
ENTRYPOINT ["powershell.exe", "-NoProfile", "-File", "C:/app/gitea-runner.ps1"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue