Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docker/Dockerfile.windows.ltsc2025
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@
# Stage 1: download and extract PowerShell 7 on servercore.
# servercore ships Windows PowerShell 5.1, which we use to run Invoke-WebRequest
# and Expand-Archive to fetch the standalone PS7 ZIP release from GitHub.
FROM mcr.microsoft.com/windows/servercore:ltsc2025 AS installer-env
FROM mcr.microsoft.com/windows/servercore:ltsc2025@sha256:d5bbb83057f6bc2b6aeba5d01ec80a53003aba9bc84a6b1ebe780570cd52558a AS installer-env
SHELL ["C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\powershell.exe", "-Command"]
RUN $ProgressPreference = 'SilentlyContinue'; `
[Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12; `
Invoke-WebRequest -Uri "https://github.com/PowerShell/PowerShell/releases/download/v7.4.6/PowerShell-7.4.6-win-x64.zip" -OutFile C:\powershell.zip -UseBasicParsing; `
Expand-Archive C:\powershell.zip -DestinationPath C:\PowerShell

# Stage 2: final nanoserver image with PowerShell 7 copied in.
FROM mcr.microsoft.com/windows/nanoserver:ltsc2025
FROM mcr.microsoft.com/windows/nanoserver:ltsc2025@sha256:fda578d34f56de2f60d91a178fd954fdc95596ebb67b3bc363deb708ef1fd94c
USER ContainerAdministrator

LABEL maintainer="Drone.IO Community <drone-dev@googlegroups.com>" `
Expand Down