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"]