Skip to content

Commit 9b3018b

Browse files
committed
comment about netapi32.dll & nanoserver-ltsc2025
1 parent 8d79b70 commit 9b3018b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

windows/nanoserver/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ ENV PSHOME="C:\Program Files\PowerShell"
6262
COPY --from=jdk-core /windows/system32/whoami.exe /windows/system32/whoami.exe
6363
COPY --from=jdk-core $JAVA_HOME $JAVA_HOME
6464
COPY --from=jdk-core /windows/system32/netapi32.dll $PSHOME/netapi32.dll
65+
# While nanoserver-ltsc2025 includes netapi32.dll, older versions don't
6566
RUN If (!(Test-Path 'C:/windows/system32/netapi32.dll') -And (Test-Path "$env:PSHOME/netapi32.dll")) { Move-Item "$env:PSHOME/netapi32.dll" 'C:/windows/system32/netapi32.dll' } Else { Write-Host "No $env:PSHOME/netapi32.dll or windows/system32/netapi32.dll alreay exists" }
6667

6768
# Backward compatibility with version <= 5.x: create a symlink to the "new" JAVA_HOME

0 commit comments

Comments
 (0)