## This image is configured just as the drone runner image but expected to be run locally for ## rapid development and testing. It is not intended to be used in production. # Start with the .NET 6.0 SDK Windows Server Core base image FROM mcr.microsoft.com/dotnet/sdk:6.0-windowsservercore-ltsc2022 # Use PowerShell SHELL ["powershell", "-Command"] # Install Chocolatey package manager RUN Set-ExecutionPolicy Bypass -Scope Process -Force; \ [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; \ iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) # Use Chocolatey to install Node.js and Git RUN choco install nodejs --version=20.10.0 -y RUN choco install git -y # Log Versions RUN node --version RUN npm --version RUN git --version # Copy build scripts into the container COPY project/build.ps1 /Code/project/ COPY project/build_launcher.ps1 /Code/project/ COPY project/build_modules.ps1 /Code/project/ COPY project/build_server.ps1 /Code/project/ COPY project/combine_builds.ps1 /Code/project/ COPY project/tag_validate.ps1 /Code/project/ # Set the working directory to /Code WORKDIR /Code