2024-02-14 01:35:01 -05:00
|
|
|
## 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
|
2024-02-27 18:05:43 -05:00
|
|
|
RUN choco install 7zip -y
|
2024-02-14 01:35:01 -05:00
|
|
|
|
|
|
|
# Set the working directory to /Code
|
2024-02-27 18:05:43 -05:00
|
|
|
RUN mkdir -p /Code
|
2024-02-14 01:35:01 -05:00
|
|
|
WORKDIR /Code
|